EncodingContext
in package
Holds data associated with an encode operation
Tags
Table of Contents
Properties
- $compress : bool
- $labelRegistry : LabelRegistry
- $packet : Packet
- $truncate : bool
Methods
- __construct() : mixed
- Constructor
- getLabelRegistry() : LabelRegistry
- Get the label registry
- getPacket() : Packet
- Get the packet
- isTruncated() : bool
- Determine or set whether the message is truncated
- useCompression() : bool
- Determine whether compression is enabled
Properties
$compress
private
bool
$compress
$labelRegistry
private
LabelRegistry
$labelRegistry
$packet
private
Packet
$packet
$truncate
private
bool
$truncate
= false
Methods
__construct()
Constructor
public
__construct(Packet $packet, LabelRegistry $labelRegistry, bool $compress) : mixed
Parameters
- $packet : Packet
- $labelRegistry : LabelRegistry
- $compress : bool
getLabelRegistry()
Get the label registry
public
getLabelRegistry() : LabelRegistry
Return values
LabelRegistrygetPacket()
Get the packet
public
getPacket() : Packet
Return values
PacketisTruncated()
Determine or set whether the message is truncated
public
isTruncated([bool $truncate = null ]) : bool
Parameters
- $truncate : bool = null
Return values
booluseCompression()
Determine whether compression is enabled
public
useCompression() : bool