Struct nom::FileProducer
[−]
[src]
pub struct FileProducer { // some fields omitted }
Methods
impl FileProducer
fn new(filename: &str, buffer_size: usize) -> Result<FileProducer>
fn state(&self) -> FileProducerState
fn refill(&mut self) -> Option<usize>
fn resize(&mut self, s: usize) -> usize
Resize the internal buffer, copy the data to the new one and returned how much data was copied
If the new buffer is smaller, the prefix will be copied, and the rest of the data will be dropped