treelite
Typedefs | Variables
C API: Python buffer protocol (PEP 3118)

Typedefs

typedef struct TreelitePyBufferFrame TreelitePyBufferFrame
 Represent a frame in the Python buffer protocol (PEP 3118). More...
 

Variables

char * format
 
size_t itemsize
 
size_t nitem
 

Detailed Description

Typedef Documentation

◆ TreelitePyBufferFrame

Initial value:
{
void* buf

Represent a frame in the Python buffer protocol (PEP 3118).

We use a simplified representation to hold only 1-D arrays with stride 1.

Variable Documentation

◆ format

char* format

◆ itemsize

size_t itemsize

◆ nitem

size_t nitem