System::IO::Stream::Read メソッド

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

ストリームから指定されたバイト数を読み取り、指定されたバイト配列に書き込みます。

virtual int32_t System::IO::Stream::Read(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count)=0
パラメーター説明
バッファconst ArrayPtr<uint8_t>&読み取ったバイトを書き込むバイト配列
offsetint32_t書き込みを開始する buffer 内の0ベース位置
countint32_t読み取るバイト数

ReturnValue

読み取られたバイト数

参照

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

ストリームから指定されたバイト数を読み取り、指定されたバイト配列に書き込みます。

virtual int32_t System::IO::Stream::Read(const System::Details::ArrayView<uint8_t> &buffer, int32_t offset, int32_t count)
パラメーター説明
バッファconst System::Details::ArrayView<uint8_t>&読み取ったバイトを書き込むバイト配列ビュー
offsetint32_t書き込みを開始する buffer 内の0ベース位置
countint32_t読み取るバイト数

ReturnValue

読み取られたバイト数

参照

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

ストリームから指定されたバイト数を読み取り、指定されたバイト配列に書き込みます。

template<std::size_t> int32_t System::IO::Stream::Read(const System::Details::StackArray<uint8_t, N> &buffer, int32_t offset, int32_t count)
パラメーター説明
Nスタック配列のサイズ
パラメーター説明
バッファconst System::Details::StackArray<uint8_t, N>&読み取ったバイトを書き込むためのバイトスタック配列
offsetint32_t書き込みを開始する buffer 内の0ベース位置
countint32_t読み取るバイト数

ReturnValue

読み取られたバイト数

参照