Enum utf16_ext::AutoEndianReader
[−]
[src]
pub enum AutoEndianReader<R> {
Little(R),
Big(R),
}Variants
Little(R)Big(R)
Methods
impl<R> AutoEndianReader<R>[src]
fn new_little(inner: R) -> Self[src]
fn new_big(inner: R) -> Self[src]
fn is_little(&self) -> bool[src]
fn is_big(&self) -> bool[src]
impl<R: Utf16ReadExt> AutoEndianReader<R>[src]
fn new_auto_bom(inner: R) -> Result<Self, Error>[src]
Reads a utf16 to detect the endianness
If value isn't a valid bom, an error is thrown
fn read_u16(&mut self) -> Result<u16, Error>[src]
fn shorts(self) -> AutoEndianShorts<R> where
Self: Sized, [src]
Self: Sized,
fn utf16_chars(self) -> AutoEndianChars<R> where
Self: Sized, [src]
Self: Sized,
impl<R: Utf16ReadExt> AutoEndianReader<R>[src]
fn read_utf16_line(&mut self, buf: &mut String) -> Result<usize, Error>[src]
fn utf16_lines(self) -> AutoEndianLines<R> where
Self: Sized, [src]
Self: Sized,