chillbuff_init

Initializes a chillbuff instance and makes it ready to accept data. @param buff The chillbuff instance to init (or rather, a pointer to it). @param initial_capacity The initial capacity of the underlying array. If you pass <code>0</code> here, <code>16</code> is used by default. @param element_size How big should every array element be? E.g. if you're storing <code>int</code> you should pass <code>sizeof(int)</code>. @param growth_method How should the buffer grow once its maximum capacity is reached? @see chillbuff_growth_method @return Chillbuff exit code as defined at the top of the chillbuff.h header file. <code>0</code> means success.

extern (C) nothrow @nogc
int
chillbuff_init

Meta