Struct Buffer

Inheritance Relationships

Derived Types

Struct Documentation

struct Buffer

Abstract base buffer class (technically not needed) Represents contiguous array memory.

Subclassed by spdl::core::CPUBuffer, spdl::core::CUDABuffer

Public Functions

Buffer(std::vector<size_t> shape, ElemClass elem_class, size_t depth)
virtual ~Buffer() = default
virtual void *data() = 0

Returns the pointer to the head of the data buffer.

Public Members

std::vector<size_t> shape

Shape of buffer.

ElemClass elem_class = ElemClass::UInt

Type of unit element.

size_t depth = sizeof(uint8_t)

Size of unit element.