Gemstone Common Library
Show/Hide TOC

# NativeEndianOrder Class

Represents a native-endian byte order interoperability class.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.141 -- Release Build+8fc1477299d57116e2a4f3cb8dfe059f814b239b
C#
View Source Request Example

    public class NativeEndianOrder : EndianOrder

VB
View Source Request Example

    Public Class NativeEndianOrder
    	Inherits EndianOrder

C++
View Source Request Example

    public ref class NativeEndianOrder : public EndianOrder

JavaScript
View Source Request Example

    Gemstone.NativeEndianOrder = function();

    Type.createClass(
    	'Gemstone.NativeEndianOrder',
    	Gemstone.EndianOrder);

Inheritance
  Object EndianOrder NativeEndianOrder

## Constructors

NativeEndianOrder | Constructs a new instance of the NativeEndianOrder class.

## Properties

Default | Returns the default instance of the NativeEndianOrder class.

## Methods

CopyBytes(Boolean, Byte, Int32) | Copies the specified Boolean value as an array of 1 byte in the target endian-order to the destination array. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
CopyBytesT(T, Byte, Int32) | Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array. (Inherited from EndianOrder)
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GetBytes(Boolean) | Returns the specified Boolean value as an array of bytes in the target endian-order. (Inherited from EndianOrder)
GetBytes(Char) | Returns the specified Unicode character value as an array of bytes in the target endian-order. (Inherited from EndianOrder)
GetBytes(Double) | Returns the specified double-precision floating point value as an array of bytes in the target endian-order. (Inherited from EndianOrder)
GetBytes(Int16) | Returns the specified 16-bit signed integer value as an array of bytes. (Inherited from EndianOrder)
GetBytes(Int32) | Returns the specified 32-bit signed integer value as an array of bytes. (Inherited from EndianOrder)
GetBytes(Int64) | Returns the specified 64-bit signed integer value as an array of bytes. (Inherited from EndianOrder)
GetBytes(Single) | Returns the specified single-precision floating point value as an array of bytes in the target endian-order. (Inherited from EndianOrder)
GetBytes(UInt16) | Returns the specified 16-bit unsigned integer value as an array of bytes. (Inherited from EndianOrder)
GetBytes(UInt32) | Returns the specified 32-bit unsigned integer value as an array of bytes. (Inherited from EndianOrder)
GetBytes(UInt64) | Returns the specified 64-bit unsigned integer value as an array of bytes. (Inherited from EndianOrder)
GetBytesT(T) | Returns the specified value as an array of bytes in the target endian-order. (Inherited from EndianOrder)
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
ToBoolean | Returns a Boolean value converted from one byte at a specified position in a byte array. (Inherited from EndianOrder)
ToChar | Returns a Unicode character converted from two bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
ToInt16 | Returns a 16-bit signed integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
ToInt32 | Returns a 32-bit signed integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
ToInt64 | Returns a 64-bit signed integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
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. (Inherited from EndianOrder)
ToString | Returns a string that represents the current object. (Inherited from Object)
ToUInt16 | Returns a 16-bit unsigned integer converted from two bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
ToUInt32 | Returns a 32-bit unsigned integer converted from four bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)
ToUInt64 | Returns a 64-bit unsigned integer converted from eight bytes, accounting for target endian-order, at a specified position in a byte array. (Inherited from EndianOrder)

## Fields

TargetEndianness | Returns the target endian-order of this EndianOrder representation. (Inherited from EndianOrder)

## Extension Methods

GetEnumValueOrDefault | Gets the enumeration constant for value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)
GetEnumValueOrDefaultT | Gets the enumeration constant for this value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)

## See Also

#### Reference

Gemstone Namespace