Read a `T` from `bytes` at the `curr_offset` and advance by `size` bytes. # Safety Let `value = &bytes[range_move(0..size_of:: (), *curr_offset)]`. Then `value` must point to a valid `T` and must be properly aligned for `T`.
(bytes: &Bytes, curr_offset: CurrOffset<'_>)
| 405 | /// Let `value = &bytes[range_move(0..size_of::<T>(), *curr_offset)]`. |
| 406 | /// Then `value` must point to a valid `T` and must be properly aligned for `T`. |
| 407 | pub unsafe fn read_from_bytes<T: Copy>(bytes: &Bytes, curr_offset: CurrOffset<'_>) -> T { |
| 408 | // SAFETY: forward caller requirements. |
| 409 | update(curr_offset, |co| unsafe { row_hash::read_from_bytes(bytes, co) }) |
| 410 | } |
no test coverage detected
searching dependent graphs…