fn return_byte(&mut self, b: u8) {
        if self.num_returned_bytes >= 2 {
            self.num_returned_bytes = 0;
        }
        // this is safe because num_retruned_bytes can be at max 1 here.
        self.buf[self.num_returned_bytes] = b;
        self.num_returned_bytes = self.num_returned_bytes + 1;
    }
// a maximum of two bytes can be returned.
// If more bytes are returned, the buffer will be filled again from the beginning
// and already present bytes will be discarded.
a maximum of two bytes can be returned.
If more bytes are returned, the buffer will be filled again from the beginning
and already present bytes will be discarded.
a maximum of two bytes can be returned . If more bytes are returned the buffer will be filled again from the beginning and already present bytes will be discarded .
fn return_byte(&mut self, b: u8) {
        if self.num_returned_bytes >= 2 {
            self.num_returned_bytes = 0;
        }
        // this is safe because num_retruned_bytes can be at max 1 here.
        self.buf[self.num_returned_bytes] = b;
        self.num_returned_bytes = self.num_returned_bytes + 1;
    }
fn return_byte ( & mut self , b : u8 ) { if self . num_returned_bytes >= 2 { self . num_returned_bytes = 0 ; } // this is safe because num_retruned_bytes can be at max 1 here. self . buf [ self . num_returned_bytes ] = b ; self . num_returned_bytes = self . num_returned_bytes + 1 ; }
a maximum of two bytes can be returned.
a maximum of two bytes can be returned .
&mut self
b
u8
&mut self
b
u8