pub trait HostAllocator:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn allocate(
&self,
len: usize,
alignment: Alignment,
) -> VortexResult<WritableHostBuffer>;
}Expand description
Allocator for exact-size writable host buffers.
Required Methods§
Sourcefn allocate(
&self,
len: usize,
alignment: Alignment,
) -> VortexResult<WritableHostBuffer>
fn allocate( &self, len: usize, alignment: Alignment, ) -> VortexResult<WritableHostBuffer>
Allocate a writable host buffer with the requested byte length and alignment.