Read()

Stream::Read(const ArrayPtr<uint8_t>&, int32_t, int32_t) method

Reads the specified number of bytes from the stream and writes them to the specified byte array.

virtual int32_t System::IO::Stream::Read(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count)=0

Arguments

ParameterTypeDescription
bufferconst ArrayPtr<uint8_t>&The byte array to write the read bytes to
offsetint32_tA 0-based position in buffer to start writing at
countint32_tThe number of bytes to read

Return Value

The number of bytes read

Stream::Read(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) method

Reads the specified number of bytes from the stream and writes them to the specified byte array.

virtual int32_t System::IO::Stream::Read(const System::Details::ArrayView<uint8_t> &buffer, int32_t offset, int32_t count)

Arguments

ParameterTypeDescription
bufferconst System::Details::ArrayView<uint8_t>&The byte array view to write the read bytes to
offsetint32_tA 0-based position in buffer to start writing at
countint32_tThe number of bytes to read

Return Value

The number of bytes read

Stream::Read(const System::Details::StackArray<uint8_t, N>&, int32_t, int32_t) method

Reads the specified number of bytes from the stream and writes them to the specified byte array.

template<std::size_t> int32_t System::IO::Stream::Read(const System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t count)

Template parameters

ParameterDescription
NThe size of the stack array

Arguments

ParameterTypeDescription
bufferconst System::Details::StackArray<uint8_t, N>&The byte stack array to write the read bytes to
offsetint32_tA 0-based position in buffer to start writing at
countint32_tThe number of bytes to read

Return Value

The number of bytes read

See Also