MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / dumpChunks

Method dumpChunks

src/Bullet3Serialize/Bullet2FileLoader/b3File.cpp:1425–1464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423 }
1424}
1425void bFile::dumpChunks(bParse::bDNA *dna)
1426{
1427 int i;
1428
1429 for (i = 0; i < m_chunks.size(); i++)
1430 {
1431 bChunkInd &dataChunk = m_chunks[i];
1432 char *codeptr = (char *)&dataChunk.code;
1433 char codestr[5] = {codeptr[0], codeptr[1], codeptr[2], codeptr[3], 0};
1434
1435 short *newStruct = dna->getStruct(dataChunk.dna_nr);
1436 char *typeName = dna->getType(newStruct[0]);
1437 printf("%3d: %s ", i, typeName);
1438
1439 printf("code=%s ", codestr);
1440
1441 printf("ptr=%p ", dataChunk.oldPtr);
1442 printf("len=%d ", dataChunk.len);
1443 printf("nr=%d ", dataChunk.nr);
1444 if (dataChunk.nr != 1)
1445 {
1446 printf("not 1\n");
1447 }
1448 printf("\n");
1449 }
1450
1451#if 0
1452 IDFinderData ifd;
1453 ifd.success = 0;
1454 ifd.IDname = NULL;
1455 ifd.just_print_it = 1;
1456 for (i=0; i<bf->m_blocks.size(); ++i)
1457 {
1458 BlendBlock* bb = bf->m_blocks[i];
1459 printf("tag='%s'\tptr=%p\ttype=%s\t[%4d]", bb->tag, bb,bf->types[bb->type_index].name,bb->m_array_entries_.size());
1460 block_ID_finder(bb, bf, &ifd);
1461 printf("\n");
1462 }
1463#endif
1464}
1465
1466void bFile::writeChunks(FILE *fp, bool fixupPointers)
1467{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
getStructMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected