XdrBuffer
in package
Enables easy iteration through a blob of XDR data
Table of Contents
Properties
Methods
- __construct() : mixed
- readBigInteger64() : BigInteger
- readBoolean() : bool
- readInteger32() : int
- readInteger64() : int
- readOpaqueFixed() : string
- readOpaqueFixedString() : string
- readOpaqueVariable() : string
- readString() : string
- readUnsignedInteger256() : string
- readUnsignedInteger32() : int
- readUnsignedInteger64() : int
- assertBytesRemaining() : mixed
- roundTo4() : int
- rounds $number up to the nearest value that's a multiple of 4
Properties
$position
protected
int
$position
$size
protected
int
$size
$xdrBytes
protected
string
$xdrBytes
Methods
__construct()
public
__construct(string $xdrBytes) : mixed
Parameters
- $xdrBytes : string
readBigInteger64()
public
readBigInteger64() : BigInteger
Return values
BigIntegerreadBoolean()
public
readBoolean() : bool
Return values
boolreadInteger32()
public
readInteger32() : int
Return values
intreadInteger64()
public
readInteger64() : int
Return values
intreadOpaqueFixed()
public
readOpaqueFixed(mixed $length) : string
Parameters
- $length : mixed
Return values
stringreadOpaqueFixedString()
public
readOpaqueFixedString(mixed $length) : string
Parameters
- $length : mixed
Return values
stringreadOpaqueVariable()
public
readOpaqueVariable([null $maxLength = null ]) : string
Parameters
- $maxLength : null = null
Return values
stringreadString()
public
readString([null $maxLength = null ]) : string
Parameters
- $maxLength : null = null
Return values
stringreadUnsignedInteger256()
public
readUnsignedInteger256() : string
Return values
stringreadUnsignedInteger32()
public
readUnsignedInteger32() : int
Return values
intreadUnsignedInteger64()
public
readUnsignedInteger64() : int
Return values
intassertBytesRemaining()
protected
assertBytesRemaining(mixed $numBytes) : mixed
Parameters
- $numBytes : mixed
roundTo4()
rounds $number up to the nearest value that's a multiple of 4
protected
roundTo4(mixed $number) : int
Parameters
- $number : mixed