sxtrdb_resetcur() added;
This commit is contained in:
parent
02fb237932
commit
fdb15a2eab
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user