GetByte()

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)

Template parameters

ParameterDescription
TThe type of elements of the array

Arguments

ParameterTypeDescription
arrayconst SharedPtr<Array<T>>&The target array
indexintZero-based offset of the byte to retrieve

Return Value

The byte value at the specified index

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)

Template parameters

ParameterDescription
TThe type of elements of the array view

Arguments

ParameterTypeDescription
arrayconst System::Details::ArrayView<T>&The target array view
indexintZero-based offset of the byte to retrieve

Return Value

The byte value at the specified index

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)

Template parameters

ParameterDescription
TThe type of elements of the stack array
NThe size of the stack array

Arguments

ParameterTypeDescription
arrayconst System::Details::StackArray<T, N>&The target stack array
indexintZero-based offset of the byte to retrieve

Return Value

The byte value at the specified index

See Also