System::Text::Encoding::GetByteCount 方法
内容
[
隐藏
]Encoding::GetByteCount(ArrayPtr<char_t>) method
获取对字符缓冲区进行编码所需的字符数。
virtual int System::Text::Encoding::GetByteCount(ArrayPtr<char_t> chars)
| 参数 | 类型 | 描述 |
|---|---|---|
| chars | ArrayPtr<char_t> | 字符缓冲区。 |
ReturnValue
所需缓冲区大小。
另见
- Typedef ArrayPtr
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++
Encoding::GetByteCount(ArrayPtr<char_t>, int, int) method
获取对字符缓冲区进行编码所需的字符数。
virtual int System::Text::Encoding::GetByteCount(ArrayPtr<char_t> chars, int index, int count)
| 参数 | 类型 | 描述 |
|---|---|---|
| chars | ArrayPtr<char_t> | 字符缓冲区。 |
| 索引 | int | 切片开始。 |
| count | int | 切片大小。 |
ReturnValue
所需缓冲区大小。
另见
- Typedef ArrayPtr
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++
Encoding::GetByteCount(const char_t *, int) method
获取对字符缓冲区进行编码所需的字符数。
virtual int System::Text::Encoding::GetByteCount(const char_t *chars, int count)
| 参数 | 类型 | 描述 |
|---|---|---|
| chars | const char_t * | 字符缓冲区。 |
| count | int | Buffer 大小。 |
ReturnValue
所需缓冲区大小。
另见
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++
Encoding::GetByteCount(const String&) method
获取对字符串进行编码所需的字符数。
virtual int System::Text::Encoding::GetByteCount(const String &s)
| 参数 | 类型 | 描述 |
|---|---|---|
| s | const String& | String 用于编码。 |
ReturnValue
所需缓冲区大小。
另见
- Class String
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++
Encoding::GetByteCount(const System::Details::StackArray<char_t, N>&, int, int) method
获取对字符缓冲区进行编码所需的字符数。
template<std::size_t> int System::Text::Encoding::GetByteCount(const System::Details::StackArray<char_t, N> &chars, int index, int count)
| 参数 | 类型 | 描述 |
|---|---|---|
| chars | const System::Details::StackArray<char_t, N>& | 字符缓冲区。 |
| 索引 | int | 切片开始。 |
| count | int | 切片大小。 |
ReturnValue
所需缓冲区大小。
另见
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++
Encoding::GetByteCount(System::Details::ArrayView<char_t>, int, int) method
获取对字符缓冲区进行编码所需的字符数。
virtual int System::Text::Encoding::GetByteCount(System::Details::ArrayView<char_t> chars, int index, int count)
| 参数 | 类型 | 描述 |
|---|---|---|
| chars | System::Details::ArrayView<char_t> | 字符缓冲区。 |
| 索引 | int | 切片开始。 |
| count | int | 切片大小。 |
ReturnValue
所需缓冲区大小。
另见
- Class Encoding
- Namespace System::Text
- Library Aspose.Font for C++