System::Text::Encoder::GetByteCount メソッド

Encoder::GetByteCount(ArrayPtr<char_t>, int, int, bool) method

バッファをエンコードするのに必要なバイト数を取得します。

virtual int System::Text::Encoder::GetByteCount(ArrayPtr<char_t> chars, int index, int count, bool flush)
パラメーター説明
charsArrayPtr<char_t>エンコードする文字。
indexintBuffer オフセット。
countintエンコードする文字数。
flushbooltrue の場合、計算後に内部エンコーダの状態をクリアします。

ReturnValue

バッファをエンコードするのに必要なバイト数。

参照

Encoder::GetByteCount(const char_t *, int, bool) method

バッファをエンコードするのに必要なバイト数を取得します。

virtual int System::Text::Encoder::GetByteCount(const char_t *chars, int count, bool flush)
パラメーター説明
charsconst char_t *エンコードする文字。
countintエンコードする文字数。
flushbooltrue の場合、計算後に内部エンコーダの状態をクリアします。

ReturnValue

バッファをエンコードするのに必要なバイト数。

参照