طريقة System::Text::EncodingEncoder::Convert

EncodingEncoder::Convert(ArrayPtr<char_t>, int, int, ArrayPtr<uint8_t>, int, int, bool, int&, int&, bool&) method

يحوّل الأحرف إلى بايتات.

virtual void System::Text::EncodingEncoder::Convert(ArrayPtr<char_t> chars, int charIndex, int charCount, ArrayPtr<uint8_t> bytes, int byteIndex, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
معاملنوعالوصف
charsArrayPtr<char_t>الأحرف المراد ترميزها.
charIndexintإزاحة مخزن الإدخال.
charCountintحجم المخزن المؤقت للإدخال.
بايتاتArrayPtr<uint8_t>مخزن البايتات الوجهة.
byteIndexintإزاحة مصفوفة الوجهة.
byteCountintحجم مصفوفة الوجهة.
flushboolإذا كان true، ينظف حالة المشفر الداخلية بعد الحساب.
charsUsedint&مرجع إلى المتغيّر لتخزين عدد الأحرف المقروءة.
bytesUsedint&مرجع إلى المتغيّر لتخزين عدد البايتات المكتوبة.
completedbool&مرجع إلى المتغيّر لتعيينه إلى true إذا استُهلك مخزن الإدخال وإلى false غير ذلك.

انظر أيضًا

EncodingEncoder::Convert(const char_t *, int, uint8_t *, int, bool, int&, int&, bool&) method

يحوّل الأحرف إلى بايتات.

virtual void System::Text::EncodingEncoder::Convert(const char_t *chars, int charCount, uint8_t *bytes, int byteCount, bool flush, int &charsUsed, int &bytesUsed, bool &completed)
معاملنوعالوصف
charsconst char_t *الأحرف المراد ترميزها.
charCountintحجم المخزن المؤقت للإدخال.
بايتاتuint8_t *مخزن البايتات الوجهة.
byteCountintحجم مصفوفة الوجهة.
flushboolإذا كان true، ينظف حالة المشفر الداخلية بعد الحساب.
charsUsedint&مرجع إلى المتغيّر لتخزين عدد الأحرف المقروءة.
bytesUsedint&مرجع إلى المتغيّر لتخزين عدد البايتات المكتوبة.
completedbool&مرجع إلى المتغيّر لتعيينه إلى true إذا استُهلك مخزن الإدخال وإلى false غير ذلك.

انظر أيضًا