-
Notifications
You must be signed in to change notification settings - Fork 0
Void
Ryan Durham edited this page Nov 27, 2021
·
2 revisions
A void represents null or an empty value. In certain cases it can be useful to read or write a zero byte value when creating composite data structures.
To encode a void:
use StageRightLabs\PhpXdr\XDR;
$xdr = XDR::fresh()->write(XDR::VOID);To decode a void:
use StageRightLabs\PhpXdr\XDR;
$xdr = XDR::fresh()->write(XDR::VOID);
$void = $xdr->read(XDR::VOID);
empty($void); // true