System::Buffer::GetByte method

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

Interprets the specified typed array as a raw byte array and retrieves the byte value at specified byte offset.

template<typename T> static uint8_t System::Buffer::GetByte(const SharedPtr<Array<T>> &array, int index)
ParameterDescription
TThe type of elements of the array
ParameterTypeDescription
arrayconst SharedPtr<Array<T>>&The target array
indexintZero-based offset of the byte to retrieve

ReturnValue

The byte value at the specified index

See Also

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

Interprets the specified typed array as a raw byte array and retrieves the byte value at specified byte offset.

template<typename T> static uint8_t System::Buffer::GetByte(const System::Details::ArrayView<T> &array, int index)
ParameterDescription
TThe type of elements of the array view
ParameterTypeDescription
arrayconst System::Details::ArrayView<T>&The target array view
indexintZero-based offset of the byte to retrieve

ReturnValue

The byte value at the specified index

See Also

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

Interprets the specified typed array as a raw byte array and retrieves the byte value at specified byte offset.

template<typename T,std::size_t> static uint8_t System::Buffer::GetByte(const System::Details::StackArray<T, N> &array, int index)
ParameterDescription
TThe type of elements of the stack array
NThe size of the stack array
ParameterTypeDescription
arrayconst System::Details::StackArray<T, N>&The target stack array
indexintZero-based offset of the byte to retrieve

ReturnValue

The byte value at the specified index

See Also