C# Class OpenMetaverse.StructuredData.OSDParser

Show file Open project: N3X15/VoxelSim

Public Methods

Method Description
ConsumeBytes ( Stream stream, int consumeBytes ) : byte[]

DeserializeLLSDBinary ( Stream stream ) : OSD

Deserializes binary LLSD

DeserializeLLSDBinary ( byte binaryData ) : OSD

Deserializes binary LLSD

FindByte ( Stream stream, byte toFind ) : bool

FindString ( Stream stream, string toFind ) : bool

HostToNetworkIntBytes ( int intHostEnd ) : byte[]

NetworkToHostDouble ( byte binaryNetEnd ) : double

NetworkToHostInt ( byte binaryNetEnd ) : int

SerializeLLSDBinary ( OSD osd ) : byte[]

SerializeLLSDBinaryStream ( OSD data ) : MemoryStream

SkipWhiteSpace ( Stream stream ) : void

Private Methods

Method Description
ParseLLSDBinaryArray ( Stream stream ) : OSD
ParseLLSDBinaryElement ( Stream stream ) : OSD
ParseLLSDBinaryMap ( Stream stream ) : OSD
SerializeLLSDBinaryArray ( MemoryStream stream, OSDArray osdArray ) : void
SerializeLLSDBinaryElement ( MemoryStream stream, OSD osd ) : void
SerializeLLSDBinaryMap ( MemoryStream stream, OSDMap osdMap ) : void

Method Details

ConsumeBytes() public static method

public static ConsumeBytes ( Stream stream, int consumeBytes ) : byte[]
stream Stream
consumeBytes int
return byte[]

DeserializeLLSDBinary() public static method

Deserializes binary LLSD
public static DeserializeLLSDBinary ( Stream stream ) : OSD
stream Stream Stream to read the data from
return OSD

DeserializeLLSDBinary() public static method

Deserializes binary LLSD
public static DeserializeLLSDBinary ( byte binaryData ) : OSD
binaryData byte Serialized data
return OSD

FindByte() public static method

public static FindByte ( Stream stream, byte toFind ) : bool
stream Stream
toFind byte
return bool

FindString() public static method

public static FindString ( Stream stream, string toFind ) : bool
stream Stream
toFind string
return bool

HostToNetworkIntBytes() public static method

public static HostToNetworkIntBytes ( int intHostEnd ) : byte[]
intHostEnd int
return byte[]

NetworkToHostDouble() public static method

public static NetworkToHostDouble ( byte binaryNetEnd ) : double
binaryNetEnd byte
return double

NetworkToHostInt() public static method

public static NetworkToHostInt ( byte binaryNetEnd ) : int
binaryNetEnd byte
return int

SerializeLLSDBinary() public static method

public static SerializeLLSDBinary ( OSD osd ) : byte[]
osd OSD
return byte[]

SerializeLLSDBinaryStream() public static method

public static SerializeLLSDBinaryStream ( OSD data ) : MemoryStream
data OSD
return System.IO.MemoryStream

SkipWhiteSpace() public static method

public static SkipWhiteSpace ( Stream stream ) : void
stream Stream
return void