NbtReader.Deserialize

Deserializes the NBT file from the given stream, to a NbtDictionary.

Namespace: Beaker.OpenCube.Nbt
Assembly: Beaker.OpenCube (in Beaker.OpenCube.dll)

Syntax

Parameters

stream:
Type: Sytem.IO.Stream
The stream to read the NBT data from.

Return Value

Type: NbtDictionary
The data from the stream, serialized into a Dictionary

Exceptions

Exception Codition
NbtFileFormatException There is an error in the NBT format that is being read from the stream
EndOfStreamException The file ended prematurely

Remarks

To be able to read compressed stream, the given stream MUST be seekable.

Examples

    NbtDictionary dict = NbtReader.Deserialize( stream );

Last edited Feb 8, 2013 at 8:11 PM by Beaker73, version 2

Comments

No comments yet.