Slice99  0.7.7
Memory slices for C99
Data Fields
Slice99 Struct Reference

A slice of some array. More...

Data Fields

void * ptr
 The pointer to data.
 
size_t item_size
 The size of each item in the array addressed by ptr.
 
size_t len
 The count of items in the array addressed by ptr.
 

Detailed Description

A slice of some array.

This structure should not be constructed manually; use Slice99_new instead.

Invariant
ptr must not be NULL.
item_size must be strictly greater than 0.

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