TemporaryBuffer.Heap pack = new TemporaryBuffer.Heap(1024);
packHeader(pack, 1);
pack.write((Constants.OBJ_REF_DELTA) << 4 | 14);
a.copyRawTo(pack);
deflate(pack, new byte[] { 1, 11, 11, 'a', '0', '1', '2', '3', '4',
'5', '6', '7', '8', '9' });
digest(pack);
PackParser p = index(new ByteArrayInputStream(pack.toByteArray()));