Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: