System::IO::BasicSTDIStreamWrapper::Read method

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

If wrapping mode is binary, reads the specified number of bytes from the stream, otherwise read the specified number of characters and converts them to uint8_t type. Writes result of the reading to the specified byte array.

virtual int32_t System::IO::BasicSTDIStreamWrapper<T, typename>::Read(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count) override
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

ReturnValue

Number of bytes or characters read

See Also

BasicSTDIStreamWrapper::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::BasicSTDIStreamWrapper<T, typename>::Read(const System::Details::ArrayView<uint8_t> &buffer, int32_t offset, int32_t count) override
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

ReturnValue

The number of bytes read

See Also