OpenMetaverse Protocol Library Developers API Documentation
BytesToUInt16 Method (bytes, pos)
NamespacesOpenMetaverseUtilsBytesToUInt16( array< Byte > [] () [] [] , Int32)
Convert the first two bytes starting at the given position in little endian ordering to an unsigned short
Declaration Syntax
C#
public 
static 
ushort 
BytesToUInt16(
        
byte[] 
bytes,
        
int 
pos
)
Parameters
bytes ( array< Byte > [] () [] [] )
Byte array containing the ushort
pos ( Int32)
Position to start reading the ushort from
Return Value
An unsigned short, will be zero if a ushort can't be read at the given position

Assembly: OpenMetaverseTypes(Module: OpenMetaverseTypes.dll) Version: 0.0.0.0