Gemstone Common Library
Show/Hide TOC

# BigEndianToBoolean(Byte*) Method

Returns a Boolean value converted from one byte at a specified position in a byte array.

## Definition

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

    public static bool ToBoolean(
    	byte* buffer
    )

VB
View Source Request Example

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

C++
View Source Request Example

    public:
    static bool ToBoolean(
    	unsigned char* buffer
    )

JavaScript
View Source Request Example

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

#### Parameters

buffer Byte*
  An array of bytes.

#### Return Value

Boolean
true if the byte at startIndex in value is nonzero; otherwise, false.

## Exceptions

ArgumentNullException | value is null.
ArgumentOutOfRangeException | startIndex is less than zero or greater than the length of value minus 1.

## See Also

#### Reference

BigEndian Class
ToBoolean Overload
Gemstone Namespace