Lines Matching +full:copy +full:- +full:item
3 // SPDX-License-Identifier: GPL-2.0-or-later
11 // preserve one-item-per-"use" syntax, it is clearer
12 // for prelude-like modules
46 ) -> bindings::gpointer; in g_aligned_alloc0()
52 fn qemu_memalign(alignment: usize, size: usize) -> *mut c_void; in qemu_memalign()
57 fn g_malloc0(n_bytes: bindings::gsize) -> bindings::gpointer; in g_malloc0()
73 #[derive(Clone, Copy, Debug)]
83 // From the glibc documentation, on GNU systems, malloc guarantees 16-byte
84 // alignment on 64-bit systems and 8-byte alignment on 32-bit systems. See
85 // https://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html.
87 // and OpenBSD, the alignment is 16 bytes on both 64-bit and 32-bit systems.
106 pub const fn new() -> Self { in new()
112 fn default() -> Self { in default()
121 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
151 // glib-allocated pointer, so `g_free`ing is safe. in dealloc()
157 // glib-allocated pointer, so `g_aligned_free`ing is safe. in dealloc()
163 // glib-allocated pointer, so `qemu_vfree`ing is safe. in dealloc()