Click or drag to resize

LittleEndianBitConverter Class

Provides methods to read primitive types from an array of bytes in a system independent format.
Inheritance Hierarchy
SystemObject
  Ookii.JumboLittleEndianBitConverter

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public static class LittleEndianBitConverter

The LittleEndianBitConverter type exposes the following members.

Methods
  NameDescription
Public methodStatic memberToDateTime
Reads a date and time from the specified position in a byte array.
Public methodStatic memberToDecimal
Reads a decimal value from the specified position in a byte array.
Public methodStatic memberToDouble
Reads a double-precision floating point number from the specified position in a byte array.
Public methodStatic memberToInt16
Reads a 16-bit signed integer from the specified position in a byte array.
Public methodStatic memberToInt32
Reads a 32-bit signed integer from the specified position in a byte array.
Public methodStatic memberToInt32From7BitEncoding
Reads in a 32-bit integer in compressed format.
Public methodStatic memberToInt64
Reads a 64-bit signed integer from the specified position in a byte array.
Public methodStatic memberToSingle
Reads a single-precision floating point number from the specified position in a byte array.
Public methodStatic memberToUInt16
Reads a 16-bit unsigned integer from the specified position in a byte array.
Public methodStatic memberToUInt32
Reads a 32-bit unsigned integer from the specified position in a byte array.
Public methodStatic memberToUInt64
Reads a 64-bit unsigned integer from the specified position in a byte array.
Top
Remarks

This class can be used to aid in implementing raw comparers for your record types.

Unlike the BitConverter class, this class always uses little endian formatting. It can be used to read data written by the BinaryWriter class.

See Also