System::Text::Encoder::Convert 메서드

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

문자를 바이트로 변환합니다.

virtual void System::Text::Encoder::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대상 배열 크기.
flushbooltrue이면 계산 후 내부 인코더 상태를 정리합니다.
charsUsedint&읽은 문자 수를 저장할 변수에 대한 참조.
bytesUsedint&작성된 바이트 수를 저장할 변수에 대한 참조.
completedbool&입력 버퍼가 소진되면 true로, 그렇지 않으면 false로 설정될 변수에 대한 참조.

또 보기

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

문자를 바이트로 변환합니다.

virtual void System::Text::Encoder::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대상 배열 크기.
flushbooltrue이면 계산 후 내부 인코더 상태를 정리합니다.
charsUsedint&읽은 문자 수를 저장할 변수에 대한 참조.
bytesUsedint&작성된 바이트 수를 저장할 변수에 대한 참조.
completedbool&입력 버퍼가 소진되면 true로, 그렇지 않으면 false로 설정될 변수에 대한 참조.

또 보기