System::IO::MemoryStream::Write 方法

MemoryStream::Write(const ArrayPtr<uint8_t>&, int32_t, int32_t) method

将指定字节数组中的指定子范围字节写入流。

void System::IO::MemoryStream::Write(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count) override
参数类型描述
bufferconst ArrayPtr<uint8_t>&包含要写入字节的数组
offsetint32_tbuffer 中子范围写入开始位置的基于 0 的索引
countint32_t要写入的子范围中元素的数量

另见

MemoryStream::Write(const System::Details::ArrayView<uint8_t>&, int32_t, int32_t) method

将指定字节数组中的指定子范围字节写入流。

void System::IO::MemoryStream::Write(const System::Details::ArrayView<uint8_t> &buffer, int32_t offset, int32_t count) override
参数类型描述
bufferconst System::Details::ArrayView<uint8_t>&包含要写入字节的数组视图
offsetint32_tbuffer 中子范围写入开始位置的基于 0 的索引
countint32_t要写入的子范围中元素的数量

另见