ToBoolean()

BitConverter::ToBoolean(const System::ArrayPtr<uint8_t>&, int) method

Converts one byte from the specified array starting at the specified index to boolean value.

static bool System::BitConverter::ToBoolean(const System::ArrayPtr<uint8_t> &value, int startIndex)

Arguments

ParameterTypeDescription
valueconst System::ArrayPtr<uint8_t>&Array that contains bytes to convert
startIndexintIndex in the array at which to start taking bytes for conversion

Return Value

Boolean value resulting from conversion

BitConverter::ToBoolean(const System::Details::ArrayView<uint8_t>&, int) method

Converts one byte from the specified array starting at the specified index to boolean value.

static bool System::BitConverter::ToBoolean(const System::Details::ArrayView<uint8_t> &value, int startIndex)

Arguments

ParameterTypeDescription
valueconst System::Details::ArrayView<uint8_t>&ArrayView that contains bytes to convert
startIndexintIndex in the array at which to start taking bytes for conversion

Return Value

Boolean value resulting from conversion

See Also