Return the underlying byte slice for this [`Lsn`].
(&self)
| 542 | |
| 543 | /// Return the underlying byte slice for this [`Lsn`]. |
| 544 | pub fn as_bytes(&self) -> [u8; 10] { |
| 545 | let mut raw: [u8; Self::SIZE] = [0; 10]; |
| 546 | |
| 547 | raw[0..4].copy_from_slice(&self.vlf_id.to_be_bytes()); |
| 548 | raw[4..8].copy_from_slice(&self.block_id.to_be_bytes()); |
| 549 | raw[8..].copy_from_slice(&self.record_id.to_be_bytes()); |
| 550 | |
| 551 | raw |
| 552 | } |
| 553 | |
| 554 | /// Increment this [`Lsn`]. |
| 555 | /// |
no outgoing calls