C# Class Orient.Client.Protocol.BinaryReaderHelper

Contains helper methods to read int16, int32 and int64 while being endian-aware.
Show file Open project: workshare/OrientDB-NET.binary

Public Methods

Method Description
CheckEndianess ( this b ) : byte[]
ReadBytesRequired ( this binRdr, int byteCount ) : byte[]
ReadInt16EndianAware ( this binRdr ) : Int16
ReadInt32EndianAware ( this binRdr ) : Int32
ReadInt32PrefixedString ( this binRdr ) : string
ReadInt64EndianAware ( this binRdr ) : System.Int64
ReadUInt16EndianAware ( this binRdr ) : UInt16
ReadUInt32EndianAware ( this binRdr ) : UInt32
ReadUInt64EndianAware ( this binRdr ) : System.UInt64

Method Details

CheckEndianess() public static method

public static CheckEndianess ( this b ) : byte[]
b this
return byte[]

ReadBytesRequired() public static method

public static ReadBytesRequired ( this binRdr, int byteCount ) : byte[]
binRdr this
byteCount int
return byte[]

ReadInt16EndianAware() public static method

public static ReadInt16EndianAware ( this binRdr ) : Int16
binRdr this
return System.Int16

ReadInt32EndianAware() public static method

public static ReadInt32EndianAware ( this binRdr ) : Int32
binRdr this
return System.Int32

ReadInt32PrefixedString() public static method

public static ReadInt32PrefixedString ( this binRdr ) : string
binRdr this
return string

ReadInt64EndianAware() public static method

public static ReadInt64EndianAware ( this binRdr ) : System.Int64
binRdr this
return System.Int64

ReadUInt16EndianAware() public static method

public static ReadUInt16EndianAware ( this binRdr ) : UInt16
binRdr this
return System.UInt16

ReadUInt32EndianAware() public static method

public static ReadUInt32EndianAware ( this binRdr ) : UInt32
binRdr this
return System.UInt32

ReadUInt64EndianAware() public static method

public static ReadUInt64EndianAware ( this binRdr ) : System.UInt64
binRdr this
return System.UInt64