void eatBlob(unsigned char *blob, unsigned long blobLen, void *ctx) { vector<BlockPtr> blocks; std::cout << "eating blob" << std::endl; if( convertBlobToBlocks(ctx, blob, blobLen, blocks) ) { //print out the block std::vector<BlockPtr>::iterator it = blocks.begin(); std::vector<BlockPtr>::iterator e = blocks.end(); std::cout << "Dumping blocks" << std::endl; while( it != e ) { BlockPtr b = *it; //std::cout << "Block at base " << std::hex << b->getBlockBase() << std::dec << std::endl; std::cout << b->printBlock() << std::endl; ++it; } } return; }