System::String::ToByteArray 方法
String::ToByteArray method
将字符串或子字符串转换为字节数组。
ArrayPtr<uint8_t> System::String::ToByteArray(int32_t startIndex=0, int32_t length=INT32_MAX, bool LE=true) const
| 参数 | 类型 | 描述 |
|---|---|---|
| startIndex | int32_t | 子字符串的起始索引。 |
| 长度 | int32_t | 子字符串的长度。 |
| LE | bool | 如果为 true,则使用小端序对字符进行编码;否则使用大端序。 |
ReturnValue
Array containing bytes representing characters of the string.
另见
- Typedef ArrayPtr
- Class String
- Namespace System
- Library Aspose.Font for C++