-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathmsgpack-stub.php
More file actions
48 lines (29 loc) · 1.08 KB
/
msgpack-stub.php
File metadata and controls
48 lines (29 loc) · 1.08 KB
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
<?php
class MessagePack {
public const OPT_PHPONLY = -1001;
public const OPT_ASSOC = -1002;
public function __construct(bool $phponly = false) {}
public function pack(mixed $data): string {}
public function setOption(int $option, mixed $value): bool {}
public function unpack(string $serialized): mixed {}
public function unpacker(): MessagePackUnpacker {}
}
class MessagePackUnpacker {
public function __construct(bool $phponly = false) {}
public function __destruct() {}
public function data(string|object|null $object = null): mixed {}
public function execute(int|float|null $offset = null): bool {}
public function feed(string $chunk): bool {}
public function reset(): void {}
public function setOption(int $option, mixed $value): bool {}
}
function msgpack_serialize(mixed $value): string {}
/**
* alias for msgpack_serialize()
*/
function msgpack_pack(mixed $value): string {}
function msgpack_unserialize(string $str): mixed {}
/**
* alias for msgpack_unserialize()
*/
function msgpack_unpack(string $str): mixed {}