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
Afficher le fichier Open project: fragmer/fNbt Class Usage Examples

Private Properties

Свойство Type Description
FillBuffer void
Swap int
Swap long
Swap short

Méthodes publiques

Méthode 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

Méthode Description
FillBuffer ( int numBytes ) : void
Swap ( int v ) : int
Swap ( long v ) : long
Swap ( short v ) : short

Method Details

NbtBinaryReader() public méthode

public NbtBinaryReader ( [ input, bool bigEndian ) : System
input [
bigEndian bool
Résultat System

ReadDouble() public méthode

public ReadDouble ( ) : double
Résultat double

ReadInt16() public méthode

public ReadInt16 ( ) : short
Résultat short

ReadInt32() public méthode

public ReadInt32 ( ) : int
Résultat int

ReadInt64() public méthode

public ReadInt64 ( ) : long
Résultat long

ReadSingle() public méthode

public ReadSingle ( ) : float
Résultat float

ReadString() public méthode

public ReadString ( ) : string
Résultat string

ReadTagType() public méthode

public ReadTagType ( ) : NbtTagType
Résultat NbtTagType

Skip() public méthode

public Skip ( int bytesToSkip ) : void
bytesToSkip int
Résultat void

SkipString() public méthode

public SkipString ( ) : void
Résultat void