System::IO::BinaryWriter::Write 方法
内容
[
隐藏
]BinaryWriter::Write(bool) method
如果 value 为 ’true’,则写入值为 0 的单字节;如果 value 为 ‘false’,则写入值为 1 的单字节到输出流。
virtual void System::IO::BinaryWriter::Write(bool value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | bool | 指定写入输出流的字节值的布尔值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(char16_t) method
将指定的 16 位宽字符值写入输出流。
virtual void System::IO::BinaryWriter::Write(char16_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | char16_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(const ArrayPtr<char_t>&, int, int) method
将指定字符数组中指定子范围的 UTF-16 字符写入输出流。
virtual void System::IO::BinaryWriter::Write(const ArrayPtr<char_t> &buffer, int index=0, int count=-1)
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | const ArrayPtr<char_t>& | 包含要写入字符的数组 |
| 索引 | int | 在 buffer 中子范围写入开始位置的基于 0 的索引 |
| count | int | 要写入的子范围中的字符数;-1 表示子范围在 buffer 数组结束处结束 |
另见
- Typedef ArrayPtr
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(const ArrayPtr<uint8_t>&, int, int) method
将指定字节数组中指定子范围的字节写入输出流。
virtual void System::IO::BinaryWriter::Write(const ArrayPtr<uint8_t> &buffer, int index=0, int count=-1)
| 参数 | 类型 | 描述 |
|---|---|---|
| buffer | const ArrayPtr<uint8_t>& | 包含要写入字节的数组 |
| 索引 | int | 在 buffer 中子范围写入开始位置的基于 0 的索引 |
| count | int | 要写入的子范围的元素数量;-1 表示子范围在 buffer 数组结束处结束 |
另见
- Typedef ArrayPtr
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(const char_t *) method
将当前编码下的长度前缀字符串写入输出流。
virtual void System::IO::BinaryWriter::Write(const char_t *value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const char_t * | 要写入的 C 字符串 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(const Decimal&) method
将指定的 Decimal 值的字节表示写入输出流。
virtual void System::IO::BinaryWriter::Write(const Decimal &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const Decimal& | 要写入的值 |
另见
- Class Decimal
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(const String&) method
将当前编码下的长度前缀字符串写入输出流。
virtual void System::IO::BinaryWriter::Write(const String &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const String& | 要写入的字符串 |
另见
- Class String
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(double) method
将指定的双精度浮点值写入输出流。
virtual void System::IO::BinaryWriter::Write(double value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | double | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(float) method
将指定的单精度浮点值写入输出流。
virtual void System::IO::BinaryWriter::Write(float value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | float | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(int) method
将指定的 32 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(int value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | int | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(int16_t) method
将指定的 16 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(int16_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | int16_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(int64_t) method
将指定的 64 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(int64_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | int64_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(uint16_t) method
将指定的无符号 16 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(uint16_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | uint16_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(uint32_t) method
将指定的无符号 32 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(uint32_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | uint32_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(uint64_t) method
将指定的无符号 64 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(uint64_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | uint64_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++
BinaryWriter::Write(uint8_t) method
将指定的无符号 8 位整数值写入输出流。
virtual void System::IO::BinaryWriter::Write(uint8_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | uint8_t | 要写入的值 |
另见
- Class BinaryWriter
- Namespace System::IO
- Library Aspose.Font for C++