PHP 클래스 pocketmine\utils\Binary

파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

공개 메소드들

메소드 설명
printFloat ( $value )
readBool ( $b ) : boolean Reads a byte boolean
readByte ( string $c, boolean $signed = true ) : integer Reads an unsigned/signed byte
readDouble ( $str )
readFloat ( $str )
readInt ( $str )
readLDouble ( $str )
readLFloat ( $str )
readLInt ( $str )
readLLong ( $str )
readLShort ( $str ) : integer Reads a 16-bit unsigned little-endian number
readLTriad ( $str ) : mixed Reads a 3-byte little-endian number
readLong ( $x )
readMetadata ( $value, boolean $types = false ) : array Reads a metadata coded string
readShort ( $str ) : integer Reads a 16-bit unsigned big-endian number
readSignedLShort ( $str ) : integer Reads a 16-bit signed little-endian number
readSignedShort ( $str ) : integer Reads a 16-bit signed big-endian number
readTriad ( $str ) : mixed Reads a 3-byte big-endian number
writeBool ( $b ) : boolean | string Writes a byte boolean
writeByte ( $c ) : string Writes an unsigned/signed byte
writeDouble ( $value )
writeFloat ( $value )
writeInt ( $value )
writeLDouble ( $value )
writeLFloat ( $value )
writeLInt ( $value )
writeLLong ( $value )
writeLShort ( $value ) : string Writes a 16-bit signed/unsigned little-endian number
writeLTriad ( $value ) : string Writes a 3-byte little-endian number
writeLong ( $value )
writeMetadata ( array $data ) : string Writes a coded metadata string
writeShort ( $value ) : string Writes a 16-bit signed/unsigned big-endian number
writeTriad ( $value ) : string Writes a 3-byte big-endian number

메소드 상세

printFloat() 공개 정적인 메소드

public static printFloat ( $value )

readBool() 공개 정적인 메소드

Reads a byte boolean
public static readBool ( $b ) : boolean
$b
리턴 boolean

readByte() 공개 정적인 메소드

Reads an unsigned/signed byte
public static readByte ( string $c, boolean $signed = true ) : integer
$c string
$signed boolean
리턴 integer

readDouble() 공개 정적인 메소드

public static readDouble ( $str )

readFloat() 공개 정적인 메소드

public static readFloat ( $str )

readInt() 공개 정적인 메소드

public static readInt ( $str )

readLDouble() 공개 정적인 메소드

public static readLDouble ( $str )

readLFloat() 공개 정적인 메소드

public static readLFloat ( $str )

readLInt() 공개 정적인 메소드

public static readLInt ( $str )

readLLong() 공개 정적인 메소드

public static readLLong ( $str )

readLShort() 공개 정적인 메소드

Reads a 16-bit unsigned little-endian number
public static readLShort ( $str ) : integer
$str
리턴 integer

readLTriad() 공개 정적인 메소드

Reads a 3-byte little-endian number
public static readLTriad ( $str ) : mixed
$str
리턴 mixed

readLong() 공개 정적인 메소드

public static readLong ( $x )

readMetadata() 공개 정적인 메소드

Reads a metadata coded string
public static readMetadata ( $value, boolean $types = false ) : array
$value
$types boolean
리턴 array

readShort() 공개 정적인 메소드

Reads a 16-bit unsigned big-endian number
public static readShort ( $str ) : integer
$str
리턴 integer

readSignedLShort() 공개 정적인 메소드

Reads a 16-bit signed little-endian number
public static readSignedLShort ( $str ) : integer
$str
리턴 integer

readSignedShort() 공개 정적인 메소드

Reads a 16-bit signed big-endian number
public static readSignedShort ( $str ) : integer
$str
리턴 integer

readTriad() 공개 정적인 메소드

Reads a 3-byte big-endian number
public static readTriad ( $str ) : mixed
$str
리턴 mixed

writeBool() 공개 정적인 메소드

Writes a byte boolean
public static writeBool ( $b ) : boolean | string
$b
리턴 boolean | string

writeByte() 공개 정적인 메소드

Writes an unsigned/signed byte
public static writeByte ( $c ) : string
$c
리턴 string

writeDouble() 공개 정적인 메소드

public static writeDouble ( $value )

writeFloat() 공개 정적인 메소드

public static writeFloat ( $value )

writeInt() 공개 정적인 메소드

public static writeInt ( $value )

writeLDouble() 공개 정적인 메소드

public static writeLDouble ( $value )

writeLFloat() 공개 정적인 메소드

public static writeLFloat ( $value )

writeLInt() 공개 정적인 메소드

public static writeLInt ( $value )

writeLLong() 공개 정적인 메소드

public static writeLLong ( $value )

writeLShort() 공개 정적인 메소드

Writes a 16-bit signed/unsigned little-endian number
public static writeLShort ( $value ) : string
$value
리턴 string

writeLTriad() 공개 정적인 메소드

Writes a 3-byte little-endian number
public static writeLTriad ( $value ) : string
$value
리턴 string

writeLong() 공개 정적인 메소드

public static writeLong ( $value )

writeMetadata() 공개 정적인 메소드

Writes a coded metadata string
public static writeMetadata ( array $data ) : string
$data array
리턴 string

writeShort() 공개 정적인 메소드

Writes a 16-bit signed/unsigned big-endian number
public static writeShort ( $value ) : string
$value
리턴 string

writeTriad() 공개 정적인 메소드

Writes a 3-byte big-endian number
public static writeTriad ( $value ) : string
$value
리턴 string