Click or drag to resize

EndianOrder Methods

The EndianOrder type exposes the following members.

Methods
  Name Description
Public method CoerceByteOrder Obsolete.
Changes the order of a buffer (reverse or pass-through) based on the target endian-order of this EndianOrder representation.
Public method CopyBuffer Obsolete.
Copies a buffer in the target endian-order of this EndianOrder representation.
Public method CopyBytes(Boolean, Byte, Int32) Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array.
Public method 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.
Public method 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.
Public method CopyBytes(Guid, Byte, Int32) Obsolete.
Copies the specified Guid value as an array of 16 bytes in the target endian-order to the destination array.
Public method 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.
Public method CopyBytes(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 method 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.
Public method 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.
Public method 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.
Public method 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.
Public method CopyBytes(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 method 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.
Public method 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.
Public method CopyBytesT(T, Byte, Int32) Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public method GetBytes(Boolean) Returns the specified Boolean value as an array of bytes in the target endian-order.
Public method GetBytes(Char) Returns the specified Unicode character value as an array of bytes in the target endian-order.
Public method GetBytes(Double) Returns the specified double-precision floating point value as an array of bytes in the target endian-order.
Public method GetBytes(Guid) Obsolete.
Returns the specified Guid value as an array of bytes.
Public method GetBytes(Int16) Returns the specified 16-bit signed integer value as an array of bytes.
Public method GetBytes(Int24) Returns the specified 24-bit signed integer value as an array of bytes.
Public method GetBytes(Int32) Returns the specified 32-bit signed integer value as an array of bytes.
Public method GetBytes(Int64) Returns the specified 64-bit signed integer value as an array of bytes.
Public method GetBytes(Single) Returns the specified single-precision floating point value as an array of bytes in the target endian-order.
Public method GetBytes(UInt16) Returns the specified 16-bit unsigned integer value as an array of bytes.
Public method GetBytes(UInt24) Returns the specified 24-bit unsigned integer value as an array of bytes.
Public method GetBytes(UInt32) Returns the specified 32-bit unsigned integer value as an array of bytes.
Public method GetBytes(UInt64) Returns the specified 64-bit unsigned integer value as an array of bytes.
Public method GetBytesT(T) Returns the specified value as an array of bytes in the target endian-order.
Public method GetHashCode Serves as the default hash function.
(Inherited from Object)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Protected method MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
Public method ToBoolean Returns a Boolean value converted from one byte at a specified position in a byte array.
Public method ToChar Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToDouble 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 method ToGuid Obsolete.
Returns a Guid converted from sixteen bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToInt16 Returns a 16-bit signed integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToInt24 Returns a 24-bit signed integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToInt32 Returns a 32-bit signed integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToInt64 Returns a 64-bit signed integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToSingle 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 method ToString Returns a string that represents the current object.
(Inherited from Object)
Public method ToUInt16 Returns a 16-bit unsigned integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToUInt24 Returns a 24-bit unsigned integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToUInt32 Returns a 32-bit unsigned integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array.
Public method ToUInt64 Returns a 64-bit unsigned integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array.
Top
Extension Methods
  Name Description
Public Extension Method GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension Method GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also