BigEndian Class

Defines a set of big-endian byte order interoperability functions.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static class BigEndian
Inheritance
Object    BigEndian

Remarks

This class is setup to support aggressive in-lining of big 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.

Methods

CopyBytes(Boolean, Byte*) Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array.
CopyBytes(Char, Byte*) Copies the specified Unicode character value as an array of 2 bytes in the target endian-order to the destination array.
CopyBytes(Decimal, Byte*) Copies the specified 128-bit decimal value as an array of 16 bytes in the target endian-order to the destination array.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(Boolean, Byte, Int32) Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array.
CopyBytes(Char, Byte, Int32) Copies the specified Unicode character value as an array of 2 bytes in the target endian-order to the destination array.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytes(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.
CopyBytesT(T, Byte*) Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.
CopyBytesT(T, Byte, Int32) Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.
GetBytes(Boolean) Returns the specified Boolean value as an array of bytes in the target endian-order.
GetBytes(Char) Returns the specified Unicode character value as an array of bytes in the target endian-order.
GetBytes(Decimal) Returns the specified 128-bit decimal value as an array of bytes.
GetBytes(Double) Returns the specified double-precision floating point value as an array of bytes in the target endian-order.
GetBytes(Int16) Returns the specified 16-bit signed integer value as an array of bytes.
GetBytes(Int32) Returns the specified 32-bit signed integer value as an array of bytes.
GetBytes(Int64) Returns the specified 64-bit signed integer value as an array of bytes.
GetBytes(Single) Returns the specified single-precision floating point value as an array of bytes in the target endian-order.
GetBytes(UInt16) Returns the specified 16-bit unsigned integer value as an array of bytes.
GetBytes(UInt32) Returns the specified 32-bit unsigned integer value as an array of bytes.
GetBytes(UInt64) Returns the specified 64-bit unsigned integer value as an array of bytes.
GetBytesT(T) Returns the specified value as an array of bytes in the target endian-order.
ToBoolean(Byte*) Returns a Boolean value converted from one byte at a specified position in a byte array.
ToBoolean(Byte, Int32) Returns a Boolean value converted from one byte at a specified position in a byte array.
ToChar(Byte*) Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
ToChar(Byte, Int32) Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
ToDecimal(Byte*) Returns a 128-bit decimal converted from 16 bytes, accounting for target endian-order, at a specified position in a byte array.
ToDecimal(Byte, Int32) Returns a 128-bit decimal converted from 16 bytes, accounting for target endian-order, at a specified position in a byte array.
ToDouble(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.
ToDouble(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.
ToInt16(Byte*) Returns a 16-bit signed integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
ToInt16(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.
ToInt32(Byte*) Returns a 32-bit signed integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
ToInt32(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.
ToInt64(Byte*) Returns a 64-bit signed integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
ToInt64(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.
ToSingle(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.
ToSingle(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.
ToUInt16(Byte*) Returns a 16-bit unsigned integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
ToUInt16(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.
ToUInt32(Byte*) Returns a 32-bit unsigned integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
ToUInt32(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.
ToUInt64(Byte*) Returns a 64-bit unsigned integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
ToUInt64(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.

See Also