/* write remainder size for rest of block data so that readers can skip if desired ID isn't present */
metaBuffer.writeInt(bodyOutputSize);
/* write offsets and lengths for each stream id */
int bodyOffset = streamsWithData.size() * 8;
for (TempData out : streamsWithData) {
metaBuffer.writeInt(bodyOffset); //TODO - reconsider how frequently this shortcut is placed on disk
metaBuffer.writeInt(out.snapshotLength);
bodyOffset += out.snapshotLength;
}
while (metaBuffer.readableBytes() > 0) {
metaBuffer.readBytes(openWriteFile, metaBuffer.readableBytes());