System::IO::FileStream::Read method

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

从流中读取指定数量的字节并将它们写入指定的字节数组。

int32_t System::IO::FileStream::Read(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count) override
ParameterType描述
缓冲区const ArrayPtr<uint8_t>&用于写入读取字节的字节数组。
offsetint32_tbuffer 中的基于 0 的起始写入位置。
countint32_t要读取的字节数。

ReturnValue

读取的字节数。

另见

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

从流中读取指定数量的字节并将它们写入指定的字节数组。

int32_t System::IO::FileStream::Read(const System::Details::ArrayView<uint8_t> &buffer, int32_t offset, int32_t count) override
ParameterType描述
缓冲区const System::Details::ArrayView<uint8_t>&用于写入读取字节的字节数组视图。
offsetint32_tbuffer 中的基于 0 的起始写入位置。
countint32_t要读取的字节数。

ReturnValue

读取的字节数。

另见