Gemstone Common Library
Show/Hide TOC

# LittleEndianGetBytes(Char) Method

Returns the specified Unicode character value as an array of bytes in the target endian-order.

## Definition

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

    public static byte[] GetBytes(
    	char value
    )

VB
View Source Request Example

    Public Shared Function GetBytes (
    	value As Char
    ) As Byte()

C++
View Source Request Example

    public:
    static array<unsigned char>^ GetBytes(
    	wchar_t value
    )

JavaScript
View Source Request Example

    Gemstone.LittleEndian.GetBytes = function(value);

#### Parameters

value Char
  The Unicode character value to convert.

#### Return Value

Byte
An array of bytes with length 2.

## See Also

#### Reference

LittleEndian Class
GetBytes Overload
Gemstone Namespace