AMQPByteStream
in package
Table of Contents
- BIT = 1
- LONG = 4
- LONGLONG = 8
- OCTET = 1
- READ_PHP_INT = 4
- SHORT = 2
- SHORTSTR = 1
- SIGNED_LONG = 4
- TIMESTAMP = 8
- PLATFORM_64BIT = PHP_INT_SIZE === 8
- $bigIntegers : array<string|int, array<string|int, BigInteger>>
- $isLittleEndian : bool
- convertByteOrder() : string
- correctEndianness() : string
- Converts byte-string between native and network byte order, in both directions
- getBigInteger() : BigInteger
- getLongMSB() : bool
- getMSB() : bool
- isLittleEndian() : bool
Constants
BIT
public
mixed
BIT
= 1
LONG
public
mixed
LONG
= 4
LONGLONG
public
mixed
LONGLONG
= 8
OCTET
public
mixed
OCTET
= 1
READ_PHP_INT
public
mixed
READ_PHP_INT
= 4
SHORT
public
mixed
SHORT
= 2
SHORTSTR
public
mixed
SHORTSTR
= 1
SIGNED_LONG
public
mixed
SIGNED_LONG
= 4
TIMESTAMP
public
mixed
TIMESTAMP
= 8
PLATFORM_64BIT
protected
bool
PLATFORM_64BIT
= PHP_INT_SIZE === 8
Properties
$bigIntegers
protected
static array<string|int, array<string|int, BigInteger>>
$bigIntegers
= array()
$isLittleEndian
protected
static bool
$isLittleEndian
Methods
convertByteOrder()
protected
convertByteOrder(string $bytes) : string
Parameters
- $bytes : string
Return values
string —correctEndianness()
Converts byte-string between native and network byte order, in both directions
protected
correctEndianness(string $bytes) : string
Parameters
- $bytes : string
Return values
string —getBigInteger()
protected
static getBigInteger(string $value[, int $base = 10 ]) : BigInteger
Parameters
- $value : string
- $base : int = 10
Return values
BigInteger —getLongMSB()
protected
getLongMSB(int $longInt) : bool
Parameters
- $longInt : int
Return values
bool —getMSB()
protected
getMSB(string $bytes) : bool
Parameters
- $bytes : string
Return values
bool —isLittleEndian()
protected
static isLittleEndian() : bool