|
static | pack ( $value) |
| Encode a value using MessagePack. More...
|
|
Definition at line 35 of file MWMessagePack.php.
◆ pack()
static MWMessagePack::pack |
( |
|
$value | ) |
|
|
static |
Encode a value using MessagePack.
This method supports null, boolean, integer, float, string and array (both indexed and associative) types. Object serialization is not supported.
- Parameters
-
- Returns
- string
- Exceptions
-
InvalidArgumentException | if $value is an unsupported type or too long a string |
Definition at line 51 of file MWMessagePack.php.
References $value, and as.
Referenced by ProfilerMwprof\logData(), and MWMessagePackTest\testPack().
◆ $bigendian
MWMessagePack::$bigendian = null |
|
static |
The documentation for this class was generated from the following file: