The type error. We can't have an error to serialize an IDX file - it's just to homogenize interfaces each others.
val default : (Hash.t * (Checkseum.Crc32.t * int64)) sequence -> Hash.t -> tdefault seq pack_hash makes a new encoder to serialize seq and associates the IDX stream produced with the pack_hash PACK file. This function takes care about the order of seq, so the client does not need to sort the iterative container.
val used_out : t -> intused_out t returns how many byte t wrote in the current buffer noticed to the previous call of eval.
eval dst t is:
`Flush tifftneeds more output storage. The client must useflushto provide a new buffer and then callevalwith`Flushuntil`Endis returned.`End twhen the encoder is done.tsticks to this situation. The client can remove it.`Error (t, exn)iff the encoder meet anerrorexn. The encoder can't continue and sticks in this situation.