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 -> t
default 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 -> int
used_out t
returns how many byte t
wrote in the current buffer noticed to the previous call of eval
.
eval dst t
is:
`Flush t
ifft
needs more output storage. The client must useflush
to provide a new buffer and then calleval
with`Flush
until`End
is returned.`End t
when the encoder is done.t
sticks to this situation. The client can remove it.`Error (t, exn)
iff the encoder meet anerror
exn
. The encoder can't continue and sticks in this situation.