show primblock metainfo

This commit is contained in:
Peter 2011-05-25 21:28:43 +02:00
parent a1f2b81332
commit b6cf2110ec
1 changed files with 6 additions and 0 deletions

View File

@ -277,6 +277,12 @@ int main(int argc, char *argv[]) {
// parse the PrimitiveBlock from the blob
primblock.ParseFromArray(unpack_buffer, sz);
// tell about the block's meta info
debug(" granularity: %u", primblock.granularity());
debug(" lat_offset: %u", primblock.lat_offset());
debug(" lon_offset: %u", primblock.lon_offset());
debug(" date_granularity: %u", primblock.date_granularity());
// tell about the stringtable
debug(" stringtable: %u items", primblock.stringtable().s_size());