System::IO::BasicSTDIOStreamWrapper::Write 方法

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

如果包装模式为二进制,则将指定字节数组的指定子范围字节写入流;否则将指定字节数组的指定子范围字节转换为 char_type 类型,然后将结果写入流。

virtual void System::IO::BasicSTDIOStreamWrapper<T, typename>::Write(const ArrayPtr<uint8_t> &buffer, int32_t offset, int32_t count) override
ParameterType描述
缓冲区const ArrayPtr<uint8_t>&包含要写入字节的数组
offsetint32_tbuffer 中子范围写入开始的基于 0 的索引
countint32_t要写入的子范围中的元素数量

另见

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

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

virtual void System::IO::BasicSTDIOStreamWrapper<T, typename>::Write(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要写入的子范围中的元素数量

另见