minor change to aide in reverse engineering protobufs

This commit is contained in:
jmjatlanta 2016-12-22 13:40:11 -05:00
parent 5eeae56378
commit 8d966178f4

2
main.c
View file

@ -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): {