MCPcopy Create free account
hub / github.com/apache/arrow-rs / mutable_push_unchecked_unaligned_u64

Function mutable_push_unchecked_unaligned_u64

arrow-buffer/src/buffer/mutable.rs:1290–1298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288
1289 #[test]
1290 fn mutable_push_unchecked_unaligned_u64() {
1291 let mut buf = MutableBuffer::new(16);
1292 unsafe {
1293 buf.push_unchecked(1_u8);
1294 buf.push_unchecked(1_u64);
1295 }
1296 assert_eq!(9, buf.len());
1297 assert_eq!(&[1u8, 1u8, 0, 0, 0, 0, 0, 0, 0], buf.as_slice());
1298 }
1299
1300 #[test]
1301 fn test_from_trusted_len_iter() {

Callers

nothing calls this directly

Calls 1

push_uncheckedMethod · 0.80

Tested by

no test coverage detected