Searched refs:bytes (Results 1 – 6 of 6) sorted by relevance
158 …bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一个大小为$2^{12}$ bytes的内存块,其$exp = 12$,…
167 pub fn bytes(&self) -> usize { in bytes() method174 pub fn from_bytes(bytes: usize) -> Option<Self> { in from_bytes()175 if bytes & MMArch::PAGE_OFFSET_MASK != 0 { in from_bytes()178 return Some(Self(bytes / MMArch::PAGE_SIZE)); in from_bytes()
320 .find_free_at(self.mmap_min, vaddr, page_count.bytes(), map_flags)? in mmap()324 .find_free(self.mmap_min, page_count.bytes()) in mmap()372 let to_unmap = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in munmap()424 let region = VirtRegion::new(start_page.virt_address(), page_count.bytes()); in mprotect()1245 mut bytes: usize, in initial_extend()1250 bytes = page_align_up(bytes); in initial_extend()1251 self.mapped_size += bytes; in initial_extend()1255 bytes, in initial_extend()1279 mut bytes: usize, in extend()1284 bytes = page_align_up(bytes); in extend()[all …]
159 for byte in s.bytes() { in __utf8_to_ascii()176 for byte in s.bytes() { in __write_string_on_stack()196 for byte in s.bytes() { in __write_string_color_on_stack()
26   缓冲区大小(单位:bytes)56   缓冲区大小(单位:bytes)92   数据大小(单位:bytes)118   数据大小(单位:bytes)144   数据大小(单位:bytes)
346 for c in s.bytes() { in uart_send()438 let bytes = message.as_bytes(); in c_uart_init() localVariable439 for c in bytes { in c_uart_init()