|
static | readTriad ($str) |
|
static | writeTriad ($value) |
|
static | readLTriad ($str) |
|
static | writeLTriad ($value) |
|
static | writeMetadata (array $data) |
|
static | readMetadata ($value, $types=false) |
|
static | readBool ($b) |
|
static | writeBool ($b) |
|
static | readByte ($c, $signed=true) |
|
static | writeByte ($c) |
|
static | readShort ($str) |
|
static | readSignedShort ($str) |
|
static | writeShort ($value) |
|
static | readLShort ($str) |
|
static | readSignedLShort ($str) |
|
static | writeLShort ($value) |
|
static | readInt ($str) |
|
static | writeInt ($value) |
|
static | readLInt ($str) |
|
static | writeLInt ($value) |
|
static | readFloat ($str) |
|
static | writeFloat ($value) |
|
static | readLFloat ($str) |
|
static | writeLFloat ($value) |
|
static | printFloat ($value) |
|
static | readDouble ($str) |
|
static | writeDouble ($value) |
|
static | readLDouble ($str) |
|
static | writeLDouble ($value) |
|
static | readLong ($x) |
|
static | writeLong ($value) |
|
static | readLLong ($str) |
|
static | writeLLong ($value) |
|
|
const | BIG_ENDIAN = 0x00 |
|
const | LITTLE_ENDIAN = 0x01 |
|
Reads a byte boolean
- Parameters
-
- Returns
- bool
static readByte |
( |
|
$c, |
|
|
|
$signed = true |
|
) |
| |
|
static |
Reads an unsigned/signed byte
- Parameters
-
- Returns
- int
static readLShort |
( |
|
$str | ) |
|
|
static |
Reads a 16-bit unsigned little-endian number
- Parameters
-
- Returns
- int
static readLTriad |
( |
|
$str | ) |
|
|
static |
Reads a 3-byte little-endian number
- Parameters
-
- Returns
- mixed
static readMetadata |
( |
|
$value, |
|
|
|
$types = false |
|
) |
| |
|
static |
Reads a metadata coded string
- Parameters
-
- Returns
- array
Reads a 16-bit unsigned big-endian number
- Parameters
-
- Returns
- int
static readSignedLShort |
( |
|
$str | ) |
|
|
static |
Reads a 16-bit signed little-endian number
- Parameters
-
- Returns
- int
static readSignedShort |
( |
|
$str | ) |
|
|
static |
Reads a 16-bit signed big-endian number
- Parameters
-
- Returns
- int
Reads a 3-byte big-endian number
- Parameters
-
- Returns
- mixed
Writes a byte boolean
- Parameters
-
- Returns
- bool|string
Writes an unsigned/signed byte
- Parameters
-
- Returns
- string
static writeLShort |
( |
|
$value | ) |
|
|
static |
Writes a 16-bit signed/unsigned little-endian number
- Parameters
-
- Returns
- string
static writeLTriad |
( |
|
$value | ) |
|
|
static |
Writes a 3-byte little-endian number
- Parameters
-
- Returns
- string
static writeMetadata |
( |
array |
$data | ) |
|
|
static |
Writes a coded metadata string
- Parameters
-
- Returns
- string
static writeShort |
( |
|
$value | ) |
|
|
static |
Writes a 16-bit signed/unsigned big-endian number
- Parameters
-
- Returns
- string
static writeTriad |
( |
|
$value | ) |
|
|
static |
Writes a 3-byte big-endian number
- Parameters
-
- Returns
- string
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/utils/Binary.php