Rapier C — 2D / f32 0.36.0+c.0
Loading...
Searching...
No Matches
R2VectorView Struct Reference

Borrowed array of vector elements. More...

#include <rapier.h>

Data Fields

const struct R2Vector * data
 Borrowed pointer to contiguous elements; NULL is allowed when count is zero.
size_t count
 Number of elements, not bytes unless the element type is a byte.

Detailed Description

Borrowed array of vector elements.

count counts elements of the declared type. Copying this view does not copy its data or extend its lifetime. No Free is needed. Data must remain live through the build/insert call that reads the description. NULL is permitted only when count is zero.

Field Documentation

◆ count

size_t R2VectorView::count

Number of elements, not bytes unless the element type is a byte.

◆ data

const struct R2Vector* R2VectorView::data

Borrowed pointer to contiguous elements; NULL is allowed when count is zero.


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