pub fn fill<E, F: FnOnce(&mut [u8]) -> Result<(), E>>(mut self, size: usize, f: F) -> Result<OutputBuf, E> {
		assert!(self.0.len() == 0, "the vector is always cleared; it's written only once");
		self.0.resize(size, 0);
		f(&mut self.0).map(|()| OutputBuf(self.0))
	}
/// Write to the buffer result of the specified size.
///
/// Calls closure with the buffer of the requested size.
Write to the buffer result of the specified size.
Calls closure with the buffer of the requested size.
Write to the buffer result of the specified size . Calls closure with the buffer of the requested size .
pub fn fill<E, F: FnOnce(&mut [u8]) -> Result<(), E>>(mut self, size: usize, f: F) -> Result<OutputBuf, E> {
		assert!(self.0.len() == 0, "the vector is always cleared; it's written only once");
		self.0.resize(size, 0);
		f(&mut self.0).map(|()| OutputBuf(self.0))
	}
pub fn fill < E , F : FnOnce ( & mut [ u8 ] ) -> Result < ( ) , E > > ( mut self , size : usize , f : F ) -> Result < OutputBuf , E > { assert ! ( self 0 len ( ) 0 " " ) ; self . 0 . resize ( size , 0 ) ; f ( & mut self . 0 ) . map ( | ( ) | OutputBuf ( self . 0 ) ) }
Write to the buffer result of the specified size.
Write to the buffer result of the specified size .
mut self
size
usize
f
F
mut self
size
usize
f
F