Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
263 B

  1. #include "scan.h"
  2. #include "rangecheck.h"
  3. size_t scan_pb_type2_stringlen(const char* in,size_t len,const char** string, size_t* slen) {
  4. unsigned long long l;
  5. size_t n=scan_varint(in,len,&l);
  6. if (n && !assign(*slen,l)) {
  7. *string=in+n;
  8. }
  9. return n;
  10. }