Skip to main content

HostAllocator

Trait HostAllocator 

Source
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§

Source

fn allocate( &self, len: usize, alignment: Alignment, ) -> VortexResult<WritableHostBuffer>

Allocate a writable host buffer with the requested byte length and alignment.

Implementors§