Data Fields | |
int | code_unit_bits |
int | bom |
int | endian |
Specify bits of a code unit. The value must be 8, 16, or 32.
Specify how to handle the heading BOM (byte order mark). The value must be 0, 1, or 2. The meanings are as follows:
0: On decoding, check the first two byte. If they are BOM, decide endian by them. If not, decide endian by the member endian
. On encoding, produce byte sequence according to endian
with heading BOM.
1: On decoding, do not handle the first two bytes as BOM, and decide endian by endian
. On encoding, produce byte sequence according to endian
without BOM.
2: On decoding, handle the first two bytes as BOM and decide ending by them. On encoding, produce byte sequence according to endian
with heading BOM.
If <code_unit_bits> is 8, the value has no meaning.
Specify the endian type. The value must be 0 or 1. 0 means little endian, and 1 means big endian.
If <code_unit_bits> is 8, the value has no meaning.