Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 8 of 8) sorted by relevance

/rust/alloc/
Dalloc.rs32 fn __rust_alloc(size: usize, align: usize) -> *mut u8; in __rust_alloc()
35 fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize); in __rust_dealloc()
38 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc()
41 fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; in __rust_alloc_zeroed()
97 pub unsafe fn alloc(layout: Layout) -> *mut u8 { in alloc()
122 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc()
141 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
175 pub unsafe fn alloc_zeroed(layout: Layout) -> *mut u8 { in alloc_zeroed()
182 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl()
198 ptr: NonNull<u8>, in grow_impl()
[all …]
Draw_vec.rs272 fn current_memory(&self) -> Option<(NonNull<u8>, Layout)> { in current_memory()
407 fn set_ptr_and_cap(&mut self, ptr: NonNull<[u8]>, cap: usize) { in set_ptr_and_cap()
495 current_memory: Option<(NonNull<u8>, Layout)>, in finish_grow()
497 ) -> Result<NonNull<[u8]>, TryReserveError> in finish_grow()
Dslice.rs607 impl [u8] { implementation
623 pub fn to_ascii_uppercase(&self) -> Vec<u8> { in to_ascii_uppercase()
644 pub fn to_ascii_lowercase(&self) -> Vec<u8> { in to_ascii_lowercase()
Dboxed.rs1373 fn write(&mut self, bytes: &[u8]) { in write()
1376 fn write_u8(&mut self, i: u8) { in write_u8()
/rust/kernel/
Dallocator.rs18 unsafe fn krealloc_aligned(ptr: *mut u8, new_layout: Layout, flags: bindings::gfp_t) -> *mut u8 { in krealloc_aligned()
43 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
49 unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { in dealloc()
55 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
70 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed()
Dstr.rs154 pub fn as_bytes(&self) -> &[u8] { in as_bytes()
160 pub const fn as_bytes_with_nul(&self) -> &[u8] { in as_bytes_with_nul()
419 pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self { in from_ptrs()
434 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
448 pub(crate) fn pos(&self) -> *mut u8 { in pos()
496 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
Dprint.rs105 module_name: &[u8],
/rust/alloc/vec/
Dmod.rs3512 fn from(s: &str) -> Vec<u8> { in from()