System::Buffer::GetByte 方法

Buffer::GetByte(const SharedPtr<Array<T>>&, int) method

将指定的类型化数组解释为原始字节数组,并在指定的字节偏移处检索字节值。

template<typename T> static uint8_t System::Buffer::GetByte(const SharedPtr<Array<T>> &array, int index)
参数描述
T数组中元素的类型
参数类型描述
数组const SharedPtr<Array<T>>&目标数组
索引int要检索的字节的零基偏移量

ReturnValue

指定索引处的字节值

另见

Buffer::GetByte(const System::Details::ArrayView<T>&, int) method

将指定的类型化数组解释为原始字节数组,并在指定的字节偏移处检索字节值。

template<typename T> static uint8_t System::Buffer::GetByte(const System::Details::ArrayView<T> &array, int index)
参数描述
T数组视图的元素类型
参数类型描述
数组const System::Details::ArrayView<T>&目标数组视图
索引int要检索的字节的零基偏移量

ReturnValue

指定索引处的字节值

另见

Buffer::GetByte(const System::Details::StackArray<T, N>&, int) method

将指定的类型化数组解释为原始字节数组,并在指定的字节偏移处检索字节值。

template<typename T,std::size_t> static uint8_t System::Buffer::GetByte(const System::Details::StackArray<T, N> &array, int index)
参数描述
T栈数组的元素类型
N栈数组的大小
参数类型描述
数组const System::Details::StackArray<T, N>&目标栈数组
索引int要检索的字节的零基偏移量

ReturnValue

指定索引处的字节值

另见