sxtrdb_resetcur() added;

This commit is contained in:
Alexander Vdolainen 2016-07-06 02:15:44 +03:00
parent 02fb237932
commit fdb15a2eab
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -662,6 +662,15 @@ void *sxtrdb_rdatacur(sxtrdb_t *b)
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 */
void sxtrdb_setflags(sxtrdb_t *b, int af)
{