php-amqplib

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

PLATFORM_64BIT

protected bool PLATFORM_64BIT = PHP_INT_SIZE === 8

Properties

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

Search results