BigEndianNbtSerializer
        
        extends BaseNbtSerializer
    
    
            
            in package
            
        
    
    
    
        
            Base Named Binary Tag encoder/decoder
Table of Contents
- $buffer : BinaryStream
 - __construct() : mixed
 - read() : TreeRoot
 - Decodes NBT from the given binary string and returns it.
 - readByte() : int
 - readByteArray() : string
 - readDouble() : float
 - readFloat() : float
 - readInt() : int
 - readIntArray() : array<string|int, mixed>
 - readLong() : int
 - readMultiple() : array<string|int, TreeRoot>
 - Decodes a list of NBT tags into objects and returns them.
 - readShort() : int
 - readSignedByte() : int
 - readSignedShort() : int
 - readString() : string
 - write() : string
 - writeByte() : void
 - writeByteArray() : void
 - writeDouble() : void
 - writeFloat() : void
 - writeInt() : void
 - writeIntArray() : void
 - writeLong() : void
 - writeMultiple() : string
 - writeShort() : void
 - writeString() : void
 - checkReadStringLength() : int
 - checkWriteStringLength() : int
 - readRoot() : TreeRoot
 - writeRoot() : void
 
Properties
$buffer
    protected
        BinaryStream
    $buffer
    
    
    
    
Methods
__construct()
    public
                    __construct() : mixed
        
    
    
        Return values
mixed —read()
Decodes NBT from the given binary string and returns it.
    public
                    read(string $buffer[, int &$offset = 0 ][, int $maxDepth = 0 ]) : TreeRoot
    
        Parameters
- $buffer : string
 - $offset : int = 0
 - 
                    
reference parameter
 - $maxDepth : int = 0
 
Tags
Return values
TreeRoot —readByte()
    public
                    readByte() : int
        
    
    
        Return values
int —readByteArray()
    public
                    readByteArray() : string
        
    
    
        Return values
string —readDouble()
    public
                    readDouble() : float
        
    
    
        Return values
float —readFloat()
    public
                    readFloat() : float
        
    
    
        Return values
float —readInt()
    public
                    readInt() : int
        
    
    
        Return values
int —readIntArray()
    public
                    readIntArray() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —readLong()
    public
                    readLong() : int
        
    
    
        Return values
int —readMultiple()
Decodes a list of NBT tags into objects and returns them.
    public
                    readMultiple(string $buffer[, int $maxDepth = 0 ]) : array<string|int, TreeRoot>
        TODO: This is only necessary because we don't have a streams API worth mentioning. Get rid of this in the future.
Parameters
- $buffer : string
 - $maxDepth : int = 0
 
Tags
Return values
array<string|int, TreeRoot> —readShort()
    public
                    readShort() : int
        
    
    
        Return values
int —readSignedByte()
    public
                    readSignedByte() : int
        
    
    
        Return values
int —readSignedShort()
    public
                    readSignedShort() : int
        
    
    
        Return values
int —readString()
    public
                    readString() : string
        
    
    
        Return values
string —write()
    public
                    write(TreeRoot $data) : string
        
        Parameters
- $data : TreeRoot
 
Return values
string —writeByte()
    public
                    writeByte(int $v) : void
        
        Parameters
- $v : int
 
Return values
void —writeByteArray()
    public
                    writeByteArray(string $v) : void
        
        Parameters
- $v : string
 
Return values
void —writeDouble()
    public
                    writeDouble(float $v) : void
        
        Parameters
- $v : float
 
Return values
void —writeFloat()
    public
                    writeFloat(float $v) : void
        
        Parameters
- $v : float
 
Return values
void —writeInt()
    public
                    writeInt(int $v) : void
        
        Parameters
- $v : int
 
Return values
void —writeIntArray()
    public
                    writeIntArray(array<string|int, mixed> $array) : void
        
        Parameters
- $array : array<string|int, mixed>
 
Return values
void —writeLong()
    public
                    writeLong(int $v) : void
        
        Parameters
- $v : int
 
Return values
void —writeMultiple()
    public
                    writeMultiple(array<string|int, TreeRoot> $data) : string
    
        Parameters
- $data : array<string|int, TreeRoot>
 
Return values
string —writeShort()
    public
                    writeShort(int $v) : void
        
        Parameters
- $v : int
 
Return values
void —writeString()
    public
                    writeString(string $v) : void
    
        Parameters
- $v : string
 
Tags
Return values
void —checkReadStringLength()
    protected
            static        checkReadStringLength(int $len) : int
    
        Parameters
- $len : int
 
Tags
Return values
int —checkWriteStringLength()
    protected
            static        checkWriteStringLength(int $len) : int
    
        Parameters
- $len : int
 
Tags
Return values
int —readRoot()
    private
                    readRoot(int $maxDepth) : TreeRoot
    
        Parameters
- $maxDepth : int
 
Tags
Return values
TreeRoot —writeRoot()
    private
                    writeRoot(TreeRoot $root) : void
        
        Parameters
- $root : TreeRoot