Allocate buffers from a specific memory zone. Use Direct for I/O operations, Heap for compute-heavy operations.
Allocates a buffer of the specified size.