System::Text::Encoder::GetBytes طريقة

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

احصل على البايتات الناتجة عن ترميز مخزن مؤقت.

virtual int System::Text::Encoder::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إزاحة مخزن الوجهة.
flushboolإذا كان true، ينظف حالة المشفر الداخلية بعد الحساب.

ReturnValue

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

انظر أيضًا

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

احصل على البايتات الناتجة عن ترميز مخزن مؤقت.

virtual int System::Text::Encoder::GetBytes(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush)
معاملنوعالوصف
charsconst char_t *الأحرف المراد ترميزها.
charCountintطول مصفوفة المصدر.
بايتاتuint8_t *مخزن البايتات الوجهة.
byteCountintحجم مخزن الوجهة.
flushboolإذا كان true، ينظف حالة المشفر الداخلية بعد الحساب.

ReturnValue

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

انظر أيضًا