Home
last modified time | relevance | path

Searched refs:buf_slice (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs427 let buf_slice = &buf[buf_begin..buf_end]; in write_at_bytes() localVariable
432 self.write_at(range.lba_start, count, buf_slice)?; in write_at_bytes()
442 temp[range.begin..range.end].copy_from_slice(buf_slice); in write_at_bytes()
466 let buf_slice = &mut buf[buf_begin..buf_end]; in read_at_bytes() localVariable
473 self.read_at(range.lba_start, count, buf_slice)?; in read_at_bytes()
484 buf_slice.copy_from_slice(&temp[range.begin..range.end]); in read_at_bytes()