EncapsulatedPacket
in package
Table of Contents
- RELIABILITY_FLAGS = 0b111 << self::RELIABILITY_SHIFT
- RELIABILITY_SHIFT = 5
- SPLIT_FLAG = 0b10000
- $buffer : string
- $identifierACK : int|null
- $messageIndex : int|null
- $orderChannel : int|null
- $orderIndex : int|null
- $reliability : int
- $sequenceIndex : int|null
- $splitInfo : SplitPacketInfo|null
- __toString() : string
- fromBinary() : EncapsulatedPacket
- getTotalLength() : int
- toBinary() : string
Constants
RELIABILITY_FLAGS
private
mixed
RELIABILITY_FLAGS
= 0b111 << self::RELIABILITY_SHIFT
RELIABILITY_SHIFT
private
mixed
RELIABILITY_SHIFT
= 5
SPLIT_FLAG
private
mixed
SPLIT_FLAG
= 0b10000
Properties
$buffer
public
string
$buffer
= ""
$identifierACK
public
int|null
$identifierACK
= null
$messageIndex
public
int|null
$messageIndex
$orderChannel
public
int|null
$orderChannel
$orderIndex
public
int|null
$orderIndex
$reliability
public
int
$reliability
$sequenceIndex
public
int|null
$sequenceIndex
$splitInfo
public
SplitPacketInfo|null
$splitInfo
= null
Methods
__toString()
public
__toString() : string
Return values
string —fromBinary()
public
static fromBinary(BinaryStream $stream) : EncapsulatedPacket
Parameters
- $stream : BinaryStream
Tags
Return values
EncapsulatedPacket —getTotalLength()
public
getTotalLength() : int
Return values
int —toBinary()
public
toBinary() : string