SetByte()

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

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

template<typename T> static void System::Buffer::SetByte(const SharedPtr<Array<T>> &array, int index, uint8_t value)

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 set
valueuint8_tThe byte value to set

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

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

template<typename T> static void System::Buffer::SetByte(const System::Details::ArrayView<T> &array, int index, uint8_t value)

Template parameters

ParameterDescription
TThe type of elements of the array

Arguments

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

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

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

template<typename T,std::size_t> static void System::Buffer::SetByte(const System::Details::StackArray<T, N> &array, int index, uint8_t value)

Template parameters

ParameterDescription
TThe type of elements of the 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 set
valueuint8_tThe byte value to set

See Also