forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
encoding.php
145 lines (77 loc) · 3.38 KB
/
encoding.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
namespace pmmp\encoding {
final class DataDecodeException extends \RuntimeException{
}
}
namespace pmmp\encoding {
abstract class BaseByteBuffer{
public function __construct(string $buffer = ''){}
public function toString() : string{}
public function readByteArray(int $length) : string{}
public function writeByteArray(string $value) : void{}
public function getReadOffset() : int{}
public function getWriteOffset() : int{}
public function setReadOffset(int $offset) : void{}
public function setWriteOffset(int $offset) : void{}
public function getUsedLength() : int{}
public function getReservedLength() : int{}
public function reserve(int $length) : void{}
public function trim() : void{}
public function clear() : void{}
public function __serialize() : array{}
public function __unserialize(array $data) : void{}
public function __debugInfo() : array{}
}
}
namespace pmmp\encoding {
final class ByteBuffer extends \pmmp\encoding\BaseByteBuffer{
public function readUnsignedByte() : int{}
public function writeUnsignedByte(int $value) : void{}
public function readSignedByte() : int{}
public function writeSignedByte(int $value) : void{}
public function readUnsignedShortLE() : int{}
public function readUnsignedShortBE() : int{}
public function readSignedShortLE() : int{}
public function readSignedShortBE() : int{}
public function writeUnsignedShortLE(int $value) : void{}
public function writeUnsignedShortBE(int $value) : void{}
public function writeSignedShortLE(int $value) : void{}
public function writeSignedShortBE(int $value) : void{}
public function readUnsignedIntLE() : int{}
public function readUnsignedIntBE() : int{}
public function readSignedIntLE() : int{}
public function readSignedIntBE() : int{}
public function writeUnsignedIntLE(int $value) : void{}
public function writeUnsignedIntBE(int $value) : void{}
public function writeSignedIntLE(int $value) : void{}
public function writeSignedIntBE(int $value) : void{}
public function readSignedLongLE() : int{}
public function readSignedLongBE() : int{}
public function writeSignedLongLE(int $value) : void{}
public function writeSignedLongBE(int $value) : void{}
public function readFloatLE() : float{}
public function readFloatBE() : float{}
public function writeFloatLE(float $value) : void{}
public function writeFloatBE(float $value) : void{}
public function readDoubleLE() : float{}
public function readDoubleBE() : float{}
public function writeDoubleLE(float $value) : void{}
public function writeDoubleBE(float $value) : void{}
public function readUnsignedVarInt() : int{}
public function readSignedVarInt() : int{}
public function writeUnsignedVarInt(int $value) : void{}
public function writeSignedVarInt(int $value) : void{}
public function readUnsignedVarLong() : int{}
public function readSignedVarLong() : int{}
public function writeUnsignedVarLong(int $value) : void{}
public function writeSignedVarLong(int $value) : void{}
public function readUnsignedTriadBE() : int{}
public function readUnsignedTriadLE() : int{}
public function writeUnsignedTriadBE(int $value) : void{}
public function writeUnsignedTriadLE(int $value) : void{}
public function readSignedTriadBE() : int{}
public function readSignedTriadLE() : int{}
public function writeSignedTriadBE(int $value) : void{}
public function writeSignedTriadLE(int $value) : void{}
}
}