طريقة GetBytes في System::Text::ICUEncoder

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)
ParameterTypeالوصف
charsArrayPtr<char_t>الأحرف المراد ترميزها.
charIndexintإزاحة مصفوفة المصدر.
charCountintطول المصفوفة الفرعية للمصدر.
بايتاتArrayPtr<uint8_t>مخزن البايتات الوجهة.
byteIndexintإزاحة مخزن الوجهة.
تفريغboolإذا كان صحيحًا، ينظف حالة المشفر الداخلية بعد الحساب.

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)
ParameterTypeالوصف
charsconst char_t *الأحرف المراد ترميزها.
charCountintطول مصفوفة المصدر.
بايتاتuint8_t *مخزن البايتات الوجهة.
byteCountintحجم مخزن الوجهة.
تفريغboolإذا كان صحيحًا، ينظف حالة المشفر الداخلية بعد الحساب.

ReturnValue

عدد البايتات المكتوبة.

انظر أيضًا