Gemstone Common Library
Show/Hide TOC

# BigEndianCopyBytes(UInt16, Byte*) Method

Copies the specified 16-bit unsigned integer value as an array of 2 bytes in the target endian-order to the destination array.

## Definition

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

    public static int CopyBytes(
    	ushort value,
    	byte* destination
    )

VB
View Source Request Example

    Visual Basic does not support APIs that consume or return unsafe types.

C++
View Source Request Example

    public:
    static int CopyBytes(
    	unsigned short value,
    	unsigned char* destination
    )

JavaScript
View Source Request Example

    JavaScript does not support APIs that consume or return unsafe types.

#### Parameters

value UInt16
  The number to convert and copy.
destination Byte*
  The destination buffer.

#### Return Value

Int32
Length of bytes copied into array based on size of value.

## See Also

#### Reference

BigEndian Class
CopyBytes Overload
Gemstone Namespace