// although BundleFormat page says "filename length, filename" for a file,
// in fact there's a sort of 'filename chunk', i.e. filename length field includes
// not only length of filename, but also length of the field itseld, i.e. filename.length+sizeof(int)
byte[] fnameBytes = fnEncoder.toBundle(df.getPath());
outRaw.writeInt(fnameBytes.length + 4);
outRaw.writeByte(fnameBytes);
new ChunkGenerator(outRaw, clogMap).iterate(s, fileRevs.toArray(true));
outRaw.writeInt(0); // null chunk for file group
}
}
outRaw.writeInt(0); // null chunk to indicate no more files (although BundleFormat page doesn't mention this)