System::Text::ICUEncoder::GetBytes メソッド

ICUEncoder::GetBytes(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, bool) method

バッファをエンコードした結果得られるバイト列を取得します。

virtual int System::Text::ICUEncoder::GetBytes(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, bool flush)
パラメーター説明
charsArrayPtr<char_t>エンコードする文字。
charIndexintソース配列のオフセット。
charCountintソースサブ配列の長さ。
バイトArrayPtr<uint8_t>出力バイト バッファ。
byteIndexintデスティネーション バッファのオフセット。
flushbooltrue の場合、計算後に内部エンコーダの状態をクリアします。

ReturnValue

書き込まれたバイト数。

参照

ICUEncoder::GetBytes(const char_t *, int, uint8_t *, int, bool) method

バッファをエンコードした結果得られるバイト列を取得します。

virtual int System::Text::ICUEncoder::GetBytes(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush)
パラメーター説明
charsconst char_t *エンコードする文字。
charCountintソース配列の長さ。
バイトuint8_t *出力バイト バッファ。
byteCountintデスティネーション バッファのサイズ。
flushbooltrue の場合、計算後に内部エンコーダの状態をクリアします。

ReturnValue

書き込まれたバイト数。

参照