libowfat/buffer/bs_seterrorstate.c

9 lines
153 B
C

#include "parse.h"
void bs_seterrorstate(struct bytestream* b) {
b->cur = 1;
b->max = 0;
if (b->type == BSTREAM)
bs_seterrorstate(b->u.bs);
}