class BufferFactory
Defined at line 50 of file ../../src/devices/lib/dma-buffer/include/lib/dma-buffer/buffer.h
Buffer factory -- abstract class used to create DMA buffers.
Use CreateBufferFactory() to create a default implementation of a buffer factory.
This class exists to allow for tests to override the behavior of DMA buffers.
Refer to fake-dma-buffer to create a fake DMA buffer.
Public Methods
zx_status_t CreateContiguous (const zx::bti & bti, size_t size, uint32_t alignment_log2, bool enable_cache, std::unique_ptr<ContiguousBuffer> * out)
zx_status_t CreatePaged (const zx::bti & bti, size_t size, bool enable_cache, std::unique_ptr<PagedBuffer> * out)
void ~BufferFactory ()
Defined at line 57 of file ../../src/devices/lib/dma-buffer/include/lib/dma-buffer/buffer.h