MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / round_up

Method round_up

block/src/qcow/raw_file.rs:69–72  ·  view source on GitHub ↗
(&self, offset: u64)

Source from the content-addressed store, hash-verified

67 }
68
69 fn round_up(&self, offset: u64) -> u64 {
70 let align: u64 = self.alignment.try_into().unwrap();
71 offset.div_ceil(align) * align
72 }
73
74 fn round_down(&self, offset: u64) -> u64 {
75 let align: u64 = self.alignment.try_into().unwrap();

Callers 2

readMethod · 0.80
writeMethod · 0.80

Calls 1

try_intoMethod · 0.80

Tested by

no test coverage detected