MCPcopy Create free account
hub / github.com/deepseek-ai/3FS / create_aligned_buf

Function create_aligned_buf

src/storage/chunk_engine/src/utils/aligned.rs:43–45  ·  view source on GitHub ↗
(size: Size)

Source from the content-addressed store, hash-verified

41}
42
43pub fn create_aligned_buf(size: Size) -> AlignedBuffer {
44 AlignedBuffer::new(size.into())
45}
46
47pub fn is_aligned_buf(data: &[u8]) -> bool {
48 data.as_ptr() as u64 % ALIGN_SIZE.0 == 0 && data.len() as u64 % ALIGN_SIZE.0 == 0

Callers 6

test_engine_list_chunksFunction · 0.85
test_engine_loadFunction · 0.85
test_engine_compactFunction · 0.85
test_engine_truncateFunction · 0.85
test_allocatorFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_engine_list_chunksFunction · 0.68
test_engine_loadFunction · 0.68
test_engine_compactFunction · 0.68
test_engine_truncateFunction · 0.68
test_allocatorFunction · 0.68