Lines Matching defs:byte_str_ref_t
311 struct byte_str_ref_t struct
313 byte_str_ref_t () { init (); } in byte_str_ref_t() argument
315 void init () in init()
322 void fini () {} in fini()
324 byte_str_ref_t (const byte_str_t &str_, unsigned int offset_ = 0) in byte_str_ref_t() argument
327 void reset (const byte_str_t &str_, unsigned int offset_ = 0) in reset()
334 const unsigned char& operator [] (int i) { in operator []()
344 operator byte_str_t () const { return str.sub_str (offset, str.length - offset); } in operator byte_str_t()
346 byte_str_t sub_str (unsigned int offset_, unsigned int len_) const in sub_str()
349 bool avail (unsigned int count=1) const in avail()
351 void inc (unsigned int count=1) in inc()
364 void set_error () { error = true; } in set_error()
365 bool in_error () const { return error; } in in_error()
367 byte_str_t str;
368 unsigned int offset; /* beginning of the sub-string within str */
371 bool error;