Enum utf16_ext::AutoEndianReader [] [src]

pub enum AutoEndianReader<R> {
    Little(R),
    Big(R),
}

A reader that will store whether to read in little or big endian

Variants

Little endian reader

Big endian reader

Methods

impl<R> AutoEndianReader<R>
[src]

[src]

Makes a new AutoEndianReader in little endian

[src]

Makes a new AutoEndianReader in big endian

[src]

Returns true if this reader is little endian

[src]

Returns true if this reader is big endian

impl<R: Utf16ReadExt> AutoEndianReader<R>
[src]

[src]

Reads a u16 to detect the endianness

If the value isn't a valid bom (U+FEFF), an error is thrown

[src]

Mirror of Utf16ReadExt::read_u16 without the type parameter for endianness

[src]

Mirror of Utf16ReadExt::shorts without the type parameter for endianness

[src]

Mirror of Utf16ReadExt::utf16_chars without the type parameter for endianness

[src]

Mirror of Utf16ReadExt::read_utf16_line without the type parameter for endianness

[src]

Mirror of Utf16ReadExt::utf16_lines without the type parameter for endianness