-
Notifications
You must be signed in to change notification settings - Fork 803
/
Copy pathmsgpack.php
88 lines (69 loc) · 1.59 KB
/
msgpack.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
// Start of msgpack 0.5.0
const MESSAGEPACK_OPT_PHPONLY = -1001;
/**
* Serialize a variable into msgpack format
* @param mixed $value
* @return string
*/
function msgpack_serialize($value) {}
/**
* Unserialize $str
* @param string $str
* @param null|array|string|object $object <p>
* Undocumented template parameter
* </p>
* @return mixed
*/
function msgpack_unserialize($str, $object = null) {}
/**
* Alias of msgpack_serialize
* @param mixed $value
* @return string
*/
function msgpack_pack($value) {}
/**
* Alias of msgpack_unserialize
* @param string $str
* @param null|array|string|object $object <p>
* Undocumented template parameter
* <p>
* @return mixed
*/
function msgpack_unpack($str, $object = null) {}
class MessagePack
{
public const OPT_PHPONLY = -1001;
/**
* @param $opt [optional]
*/
public function __construct($opt) {}
public function setOption($option, $value) {}
public function pack($value) {}
/**
* @param $str
* @param $object [optional]
*/
public function unpack($str, $object) {}
public function unpacker() {}
}
class MessagePackUnpacker
{
/**
* @param $opt [optional]
*/
public function __construct($opt) {}
public function __destruct() {}
public function setOption($option, $value) {}
public function feed($str) {}
/**
* @param $str [optional]
* @param $offset [optional]
*/
public function execute($str, &$offset) {}
/**
* @param $object [optional]
*/
public function data($object) {}
public function reset() {}
}