C# Class fNbt.NbtBinaryReader

BinaryReader wrapper that takes care of reading primitives from an NBT stream, while taking care of endianness, string encoding, and skipping.
Inheritance: System.IO.BinaryReader
Show file Open project: fragmer/fNbt Class Usage Examples

Private Properties

Property Type Description
FillBuffer void
Swap int
Swap long
Swap short

Public Methods

Method Description
NbtBinaryReader ( [ input, bool bigEndian ) : System
ReadDouble ( ) : double
ReadInt16 ( ) : short
ReadInt32 ( ) : int
ReadInt64 ( ) : long
ReadSingle ( ) : float
ReadString ( ) : string
ReadTagType ( ) : NbtTagType
Skip ( int bytesToSkip ) : void
SkipString ( ) : void

Private Methods

Method Description
FillBuffer ( int numBytes ) : void
Swap ( int v ) : int
Swap ( long v ) : long
Swap ( short v ) : short

Method Details

NbtBinaryReader() public method

public NbtBinaryReader ( [ input, bool bigEndian ) : System
input [
bigEndian bool
return System

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadInt16() public method

public ReadInt16 ( ) : short
return short

ReadInt32() public method

public ReadInt32 ( ) : int
return int

ReadInt64() public method

public ReadInt64 ( ) : long
return long

ReadSingle() public method

public ReadSingle ( ) : float
return float

ReadString() public method

public ReadString ( ) : string
return string

ReadTagType() public method

public ReadTagType ( ) : NbtTagType
return NbtTagType

Skip() public method

public Skip ( int bytesToSkip ) : void
bytesToSkip int
return void

SkipString() public method

public SkipString ( ) : void
return void