Skip to content

Commit

Permalink
Give read_bytes_to_u64 a more precise safety comment, matching write_…
Browse files Browse the repository at this point in the history
…u64_bytes.
  • Loading branch information
ssbr committed Oct 11, 2024
1 parent 7d23f7e commit c6201c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-buffer/src/util/bit_mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ unsafe fn set_upto_64bits(
}

/// # Safety
/// The caller must ensure all arguments are within the valid range.
/// The caller must ensure `data` has `offset..(offset + 8)` range
#[inline]
unsafe fn read_bytes_to_u64(data: &[u8], offset: usize, count: usize) -> u64 {
debug_assert!(count <= 8);
Expand Down

0 comments on commit c6201c7

Please sign in to comment.