Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
|
aint uiReserved
The current number of elements reserved.
abool bVecValidate(void *vpCtx)
Validates a vector component context.
void * vpVecPopn(void *vpCtx, aint uiCount)
Pops one or more elements from the end of the array.
aint uiGrownCount
The number times the vector was automatically extended.
void vVecDtor(void *vpCtx)
The vector component destructor.
void * vpVecPushn(void *vpCtx, void *vpElement, aint uiCount)
Adds one or more elements to the end of the array.
aint uiVecLen(void *vpCtx)
Get the vector length. That is, the number of elements on the vector.
void * vpVecCtor(void *vpMem, aint uiElementSize, aint uiInitialAlloc)
The vector object constructor.
aint uiGrownBytes
The number of bytes automatically added to the vector.
aint uiOriginalBytes
The initial number of bytes allocated to the vector.
void * vpVecPop(void *vpCtx)
Pops one element from the end of the array.
aint uiUsed
The current number elements used.
void * vpVecPopi(void *vpCtx, aint uiIndex)
Pops the element at the given zero-based index and all higher indexes.
aint uiPushed
The total number of elements pushed onto (added to) the vector.
uint_fast32_t aint
The APG parser's unsigned integer type.
aint uiOriginalElements
The initial number of elements allocated to the vector.
aint uiUsedBytes
The current number of bytes in use.
void * vpVecLast(void *vpCtx)
Get the last element one the vector. The vector is not altered.
aint uiReservedBytes
The current number of bytes reserved.
void * vpVecBuffer(void *vpCtx)
Get a pointer to the vector buffer.
void * vpVecFirst(void *vpCtx)
Get the first element one the vector. The vector is not altered.
void * vpVecAt(void *vpCtx, aint uiIndex)
Get a the indexed vector element. The vector is not altered.
void * vpVecPush(void *vpVec, void *vpElement)
Adds one element to the end of the array.
aint uiPopped
The total number of elements popped from (removed from) the vector.
aint uiGrownElements
The number new elements automatically added to the vector.
uint8_t abool
abool is the APG bool type.
void vVecClear(void *vpCtx)
Clears all used elements in a vector component.
aint uiMaxUsedBytes
The maximum number of bytes used over the lifetime of the vector.
void vVecStats(void *vpCtx, vec_stats *spStats)
aint uiElementSize
The number of bytes in one element.
aint uiMaxUsed
The maximum number of elements used during the vector's lifetime.
APG Version 7.0 is licensed under the
2-Clause BSD License,
an Open Source Initiative Approved License.