MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / vec_pad

Function vec_pad

nodedb-vector/src/mmap_segment/format.rs:22–24  ·  view source on GitHub ↗
(vec_bytes: usize)

Source from the content-addressed store, hash-verified

20/// Returns 0 when `vec_bytes` is already a multiple of 8, else 4.
21#[inline]
22pub(super) const fn vec_pad(vec_bytes: usize) -> usize {
23 (8 - (vec_bytes % 8)) % 8
24}
25
26/// Footer size in bytes (46).
27///

Callers 2

write_segmentFunction · 0.85
validate_and_buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected