Add a slice of bytes.
(&mut self, data: &[u8])
| 578 | |
| 579 | /// Add a slice of bytes. |
| 580 | pub fn put_data(&mut self, data: &[u8]) { |
| 581 | self.data.extend_from_slice(data); |
| 582 | |
| 583 | // Post-invariant: as for `put1()`. |
| 584 | } |
| 585 | |
| 586 | /// Reserve appended space and return a mutable slice referring to it. |
| 587 | pub fn get_appended_space(&mut self, len: usize) -> &mut [u8] { |
no outgoing calls
no test coverage detected