minor change to aide in reverse engineering protobufs
This commit is contained in:
parent
5eeae56378
commit
8d966178f4
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -100,7 +100,7 @@ int main(int argc, char** argv) {
|
||||||
unsigned long long varint = 0;
|
unsigned long long varint = 0;
|
||||||
protobuf_decode_varint(&buffer[pos], numBytes-pos, &varint, &bytes_read);
|
protobuf_decode_varint(&buffer[pos], numBytes-pos, &varint, &bytes_read);
|
||||||
pos += bytes_read;
|
pos += bytes_read;
|
||||||
printf(" Value: %llu\n", varint);
|
printf(" Value: %llu. Next read position at %lu\n", varint, pos);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case (WIRETYPE_LENGTH_DELIMITED): {
|
case (WIRETYPE_LENGTH_DELIMITED): {
|
||||||
|
|
Loading…
Reference in a new issue