Struct nom::MemProducer [] [src]

pub struct MemProducer<'x> {
    // some fields omitted
}

Can parse data from an already in memory byte array

  • buffer holds the reference to the data that must be parsed

  • length is the length of that buffer

  • index is the position in the buffer

  • chunk_size is the quantity of data sent at once

Methods

impl<'x> MemProducer<'x>
[src]

fn new(buffer: &'x [u8], chunk_size: usize) -> MemProducer

Trait Implementations

impl<'x> Producer for MemProducer<'x>
[src]

fn produce(&mut self) -> ProducerState<&[u8]>

fn seek(&mut self, position: SeekFrom) -> Option<u64>