Gemstone Common Library
Show/Hide TOC

# LittleEndianGetBytes(Boolean) Method

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

## Definition

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

    public static byte[] GetBytes(
    	bool value
    )

VB
View Source Request Example

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

C++
View Source Request Example

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

JavaScript
View Source Request Example

    Gemstone.LittleEndian.GetBytes = function(value);

#### Parameters

value Boolean
  The Boolean value to convert.

#### Return Value

Byte
An array of bytes with length 1.

## See Also

#### Reference

LittleEndian Class
GetBytes Overload
Gemstone Namespace