MediaWiki  1.34.0
MWMessagePack Class Reference

Static Public Member Functions

static pack ( $value)
 Encode a value using MessagePack. More...
 

Static Public Attributes

static bool null $bigendian = null
 Whether current system is bigendian. More...
 

Detailed Description

Definition at line 36 of file MWMessagePack.php.

Member Function Documentation

◆ 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.

Deprecated:
since 1.34, no longer used
Parameters
mixed$value
Returns
string
Exceptions
InvalidArgumentExceptionif $value is an unsupported type or too long a string

Definition at line 53 of file MWMessagePack.php.

References wfDeprecated().

Member Data Documentation

◆ $bigendian

bool null MWMessagePack::$bigendian = null
static

Whether current system is bigendian.

Definition at line 38 of file MWMessagePack.php.


The documentation for this class was generated from the following file: