Dump the contents of the multi-pack-index to an in-memory buffer.
multi-pack-index
Buffer where to store the contents of the multi-pack-index.
the writer
0 or an error code