sxtrdb_resetcur() added;

master
Alexander Vdolainen 8 years ago
parent 02fb237932
commit fdb15a2eab

@ -142,6 +142,9 @@ void sxtrdb_setflags(sxtrdb_t *, int);
/* exchange flags for raw buff */ /* exchange flags for raw buff */
void sxtrdb_exflags(sxtrdb_t *, int); void sxtrdb_exflags(sxtrdb_t *, int);
/* reset current pointer */
void sxtrdb_resetcur(sxtrdb_t *);
/* reset all the flags */ /* reset all the flags */
#define sxtrdb_flagsreset(a) sxtrdb_exflags((a), 0) #define sxtrdb_flagsreset(a) sxtrdb_exflags((a), 0)

@ -662,6 +662,15 @@ void *sxtrdb_rdatacur(sxtrdb_t *b)
return (void *)(b->raw + b->curr); return (void *)(b->raw + b->curr);
} }
/* reset current pointer */
void sxtrdb_resetcur(sxtrdb_t *b)
{
if(!b || b->raw) return;
else b->curr = 0;
return;
}
/* set flags to the raw buffer */ /* set flags to the raw buffer */
void sxtrdb_setflags(sxtrdb_t *b, int af) void sxtrdb_setflags(sxtrdb_t *b, int af)
{ {

Loading…
Cancel
Save