class ByteBuffer implements Serializable (View source)

Methods

__construct(string $binaryData)

No description

static 
fromHex(string $hex)

No description

static 
fromBase64Url(string $base64url)

No description

isEmpty()

No description

getLength()

No description

static 
randomBuffer(int $length)

No description

getBytes(int $offset, int $length)

No description

getByteVal(int $offset)

No description

getUint16Val(int $offset)

No description

getUint32Val(int $offset)

No description

getUint64Val(int $offset)

No description

getHalfFloatVal(int $offset)

No description

getFloatVal(int $offset)

No description

getDoubleVal(int $offset)

No description

string
getBinaryString()

No description

equals(ByteBuffer $buffer)

No description

string
getHex()

No description

getBase64Url()

No description

serialize()

No description

unserialize($serialized)

No description

Details

__construct(string $binaryData)

Parameters

string $binaryData

static fromHex(string $hex)

Parameters

string $hex

static fromBase64Url(string $base64url)

Parameters

string $base64url

isEmpty()

getLength()

static randomBuffer(int $length)

Parameters

int $length

getBytes(int $offset, int $length)

Parameters

int $offset
int $length

getByteVal(int $offset)

Parameters

int $offset

getUint16Val(int $offset)

Parameters

int $offset

getUint32Val(int $offset)

Parameters

int $offset

getUint64Val(int $offset)

Parameters

int $offset

getHalfFloatVal(int $offset)

Parameters

int $offset

getFloatVal(int $offset)

Parameters

int $offset

getDoubleVal(int $offset)

Parameters

int $offset

string getBinaryString()

Return Value

string

equals(ByteBuffer $buffer)

Parameters

ByteBuffer $buffer

string getHex()

Return Value

string

getBase64Url()

serialize()

unserialize($serialized)

Parameters

$serialized