Click or drag to resize

LittleEndian Class

Defines a set of little-endian byte order interoperability functions.
Inheritance Hierarchy
SystemObject
  GSFLittleEndian

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public static class LittleEndian
View Source

The LittleEndian type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCopyBytes(Boolean, Byte*) Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Char, Byte*) Copies the specified Unicode character value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Decimal, Byte*) Copies the specified 128-bit decimal value as an array of 16 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Double, Byte*) Copies the specified double-precision floating point value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int16, Byte*) Copies the specified 16-bit signed integer value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int24, Byte*) Copies the specified 24-bit signed integer value as an array of 3 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int32, Byte*) Copies the specified 32-bit signed integer value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int64, Byte*) Copies the specified 64-bit signed integer value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Single, Byte*) Copies the specified single-precision floating point value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt16, Byte*) Copies the specified 16-bit unsigned integer value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt24, Byte*) Copies the specified 24-bit unsigned integer value as an array of 3 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt32, Byte*) Copies the specified 32-bit unsigned integer value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt64, Byte*) Copies the specified 64-bit unsigned integer value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Boolean, Byte, Int32) Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Char, Byte, Int32) Copies the specified Unicode character value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Decimal, Byte, Int32) Copies the specified 128-bit decimal value as an array of 16 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Double, Byte, Int32) Copies the specified double-precision floating point value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int16, Byte, Int32) Copies the specified 16-bit signed integer value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int24, Byte, Int32) Copies the specified 24-bit signed integer value as an array of 3 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int32, Byte, Int32) Copies the specified 32-bit signed integer value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Int64, Byte, Int32) Copies the specified 64-bit signed integer value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(Single, Byte, Int32) Copies the specified single-precision floating point value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt16, Byte, Int32) Copies the specified 16-bit unsigned integer value as an array of 2 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt24, Byte, Int32) Copies the specified 24-bit unsigned integer value as an array of 3 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt32, Byte, Int32) Copies the specified 32-bit unsigned integer value as an array of 4 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytes(UInt64, Byte, Int32) Copies the specified 64-bit unsigned integer value as an array of 8 bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytesT(T, Byte*) Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.
Public methodStatic memberCopyBytesT(T, Byte, Int32) Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.
Public methodStatic memberGetBytes(Boolean) Returns the specified Boolean value as an array of bytes in the target endian-order.
Public methodStatic memberGetBytes(Char) Returns the specified Unicode character value as an array of bytes in the target endian-order.
Public methodStatic memberGetBytes(Decimal) Returns the specified 128-bit decimal value as an array of bytes.
Public methodStatic memberGetBytes(Double) Returns the specified double-precision floating point value as an array of bytes in the target endian-order.
Public methodStatic memberGetBytes(Int16) Returns the specified 16-bit signed integer value as an array of bytes.
Public methodStatic memberGetBytes(Int24) Returns the specified 24-bit signed integer value as an array of bytes.
Public methodStatic memberGetBytes(Int32) Returns the specified 32-bit signed integer value as an array of bytes.
Public methodStatic memberGetBytes(Int64) Returns the specified 64-bit signed integer value as an array of bytes.
Public methodStatic memberGetBytes(Single) Returns the specified single-precision floating point value as an array of bytes in the target endian-order.
Public methodStatic memberGetBytes(UInt16) Returns the specified 16-bit unsigned integer value as an array of bytes.
Public methodStatic memberGetBytes(UInt24) Returns the specified 24-bit unsigned integer value as an array of bytes.
Public methodStatic memberGetBytes(UInt32) Returns the specified 32-bit unsigned integer value as an array of bytes.
Public methodStatic memberGetBytes(UInt64) Returns the specified 64-bit unsigned integer value as an array of bytes.
Public methodStatic memberGetBytesT(T) Returns the specified value as an array of bytes in the target endian-order.
Public methodStatic memberToBoolean(Byte*) Returns a Boolean value converted from one byte at a specified position in a byte array.
Public methodStatic memberToBoolean(Byte, Int32) Returns a Boolean value converted from one byte at a specified position in a byte array.
Public methodStatic memberToChar(Byte*) Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToChar(Byte, Int32) Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToDecimal(Byte*) Returns a 128-bit decimal converted from 16 bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToDecimal(Byte, Int32) Returns a 128-bit decimal converted from 16 bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToDouble(Byte*) Returns a double-precision floating point number converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToDouble(Byte, Int32) Returns a double-precision floating point number converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt16(Byte*) Returns a 16-bit signed integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt16(Byte, Int32) Returns a 16-bit signed integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt24(Byte*) Returns a 24-bit signed integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt24(Byte, Int32) Returns a 24-bit signed integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt32(Byte*) Returns a 32-bit signed integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt32(Byte, Int32) Returns a 32-bit signed integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt64(Byte*) Returns a 64-bit signed integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToInt64(Byte, Int32) Returns a 64-bit signed integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToSingle(Byte*) Returns a single-precision floating point number converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToSingle(Byte, Int32) Returns a single-precision floating point number converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt16(Byte*) Returns a 16-bit unsigned integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt16(Byte, Int32) Returns a 16-bit unsigned integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt24(Byte*) Returns a 24-bit unsigned integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt24(Byte, Int32) Returns a 24-bit unsigned integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt32(Byte*) Returns a 32-bit unsigned integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt32(Byte, Int32) Returns a 32-bit unsigned integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt64(Byte*) Returns a 64-bit unsigned integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public methodStatic memberToUInt64(Byte, Int32) Returns a 64-bit unsigned integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Top
Remarks
This class is setup to support aggressive in-lining of little endian conversions. Bounds will not be checked as part of this function call, if bounds are violated, the exception will be thrown at the Array level.
See Also

Reference

GSF Namespace