Struct encoding::codec::utf_16::UTF16Decoder [] [src]

pub struct UTF16Decoder<E> {
    // some fields omitted
}

A decoder for UTF-16.

Specialization

This type is specialized with endianness type E, which should be either Little (little endian) or Big (big endian).

Methods

impl<E: Endian> UTF16Decoder<E>

fn new() -> Box<RawDecoder>

Trait Implementations

impl<E: Endian> RawDecoder for UTF16Decoder<E>

fn from_self(&self) -> Box<RawDecoder>

fn raw_feed(&mut self, input: &[u8], output: &mut StringWriter) -> (usize, Option<CodecError>)

fn raw_finish(&mut self, _output: &mut StringWriter) -> Option<CodecError>

fn is_ascii_compatible(&self) -> bool