MCPcopy Create free account
hub / github.com/WheretIB/nullc / VectorNext

Function VectorNext

NULLC/includes/vector.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 NULLCRef VectorNext(vector_iterator* iter)
154 {
155 NULLCRef ret;
156 ret.typeID = (iter->arr->flags ? nullcGetSubType(iter->arr->elemType) : iter->arr->elemType);
157 ret.ptr = iter->arr->flags ? ((char**)iter->arr->data.ptr)[iter->pos] : iter->arr->data.ptr + iter->arr->elemSize * iter->pos;
158 iter->pos++;
159 return ret;
160 }
161 int VectorHasNext(vector_iterator* iter)
162 {
163 return iter->arr && iter->pos < iter->arr->size;

Callers

nothing calls this directly

Calls 1

nullcGetSubTypeFunction · 0.70

Tested by

no test coverage detected