Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: