Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimBuffer Struct Reference

Owning contiguous typed buffer for research-facing bulk APIs. More...

#include <sim_buffer.h>

Collaboration diagram for SimBuffer:

Public Attributes

void * data
 
size_t count
 
size_t bytes
 
SimBufferDataType type
 
size_t * shape_storage
 
size_t * stride_storage
 
SimFieldLayout layout
 

Detailed Description

Owning contiguous typed buffer for research-facing bulk APIs.

Member Data Documentation

◆ bytes

size_t SimBuffer::bytes

Allocation size in bytes.

◆ count

size_t SimBuffer::count

Number of logical elements.

◆ data

void* SimBuffer::data

Owned element storage.

◆ layout

SimFieldLayout SimBuffer::layout

Public layout view over owned shape/stride arrays.

◆ shape_storage

size_t* SimBuffer::shape_storage

Owned shape array backing layout.shape.

◆ stride_storage

size_t* SimBuffer::stride_storage

Owned row-major stride array backing layout.strides.

◆ type

SimBufferDataType SimBuffer::type

Scalar storage type for each element.


The documentation for this struct was generated from the following file: