Stellar PHP SDK API Documentation

XdrBuffer
in package

Enables easy iteration through a blob of XDR data

Table of Contents

Properties

$position  : int
$size  : int
$xdrBytes  : string

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

Methods

__construct()

public __construct(string $xdrBytes) : mixed
Parameters
$xdrBytes : string

readBigInteger64()

public readBigInteger64() : BigInteger
Return values
BigInteger

readBoolean()

public readBoolean() : bool
Return values
bool

readInteger32()

public readInteger32() : int
Return values
int

readInteger64()

public readInteger64() : int
Return values
int

readOpaqueFixed()

public readOpaqueFixed(mixed $length) : string
Parameters
$length : mixed
Return values
string

readOpaqueFixedString()

public readOpaqueFixedString(mixed $length) : string
Parameters
$length : mixed
Return values
string

readOpaqueVariable()

public readOpaqueVariable([null $maxLength = null ]) : string
Parameters
$maxLength : null = null
Return values
string

readString()

public readString([null $maxLength = null ]) : string
Parameters
$maxLength : null = null
Return values
string

readUnsignedInteger256()

public readUnsignedInteger256() : string
Return values
string

readUnsignedInteger32()

public readUnsignedInteger32() : int
Return values
int

readUnsignedInteger64()

public readUnsignedInteger64() : int
Return values
int

assertBytesRemaining()

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
Return values
int

        
On this page

Search results