Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
AsciiHex Class Reference

Class for handling ASCII hexadecimal encoded data. More...

Inheritance diagram for AsciiHex:
FilterInterface

Public Member Functions

 decode ($data)
 Converts an ASCII hexadecimal encoded string into its binary representation.
 
 encode ($data, $leaveEOD=false)
 Converts a string into ASCII hexadecimal representation.
 

Detailed Description

Class for handling ASCII hexadecimal encoded data.

Member Function Documentation

◆ decode()

AsciiHex::decode ( $data)

Converts an ASCII hexadecimal encoded string into its binary representation.

Parameters
string$dataThe input string
Return values
string

Implements FilterInterface.

◆ encode()

AsciiHex::encode ( $data,
$leaveEOD = false )

Converts a string into ASCII hexadecimal representation.

Parameters
string$dataThe input string
boolean$leaveEOD
Return values
string

The documentation for this class was generated from the following file: