pub fn read(data: &mut [u8]) -> (usize, bool)
Reads and removes data from the log buffer.
Returns the number of bytes read and whether data was lost.