System::BitConverter::ToBoolean method

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

将指定数组中从指定索引开始的一个字节转换为布尔值。

static bool System::BitConverter::ToBoolean(const System::ArrayPtr<uint8_t> &value, int startIndex)
ParameterType描述
valueconst System::ArrayPtr<uint8_t>&包含要转换的字节的 Array
startIndexint在数组中开始获取用于转换的字节的索引

ReturnValue

Boolean value resulting from conversion

另见

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

将指定数组中从指定索引开始的一个字节转换为布尔值。

static bool System::BitConverter::ToBoolean(const System::Details::ArrayView<uint8_t> &value, int startIndex)
ParameterType描述
valueconst System::Details::ArrayView<uint8_t>&包含待转换字节的 ArrayView
startIndexint在数组中开始获取用于转换的字节的索引

ReturnValue

Boolean value resulting from conversion

另见