module Hash : sig ... endmodule Reference : Reference.S with module Hash := Hashval set_pos : encoder -> int -> unitset_pos encoder pos is unsafe and change the internal position of the encoder. Don't use it.
free encoder returns the free internal buffer of the encoder. Don't use it.
type 'a state = | Write of {
} | Means that we want to flush the internal buffer of the encoder. We provide and | ||||
| Ok of 'a | The end value of the encoding. |
type action = [ | `GitProtoRequest of Common.git_proto_request |
| `UploadRequest of Common.upload_request |
| `HttpUploadRequest of [ `Done | `Flush ] * Common.http_upload_request |
| `Advertised_refs of Common.advertised_refs |
| `Shallow_update of Common.shallow_update |
| `Negociation of Common.acks |
| `Negociation_result of Common.negociation_result |
| `Report_status of [ `No_multiplexe | `Side_band | `Side_band_64k ] * Common.report_status |
| `UpdateRequest of Common.update_request |
| `HttpUpdateRequest of Common.update_request |
| `Has of Hash.Set.t |
| `Done |
| `Flush |
| `Shallow of Hash.t list |
| `PACK of int |
]The type action to describe what is expected to encode/send.
encode encoder action encodes to an output represented by encoder in the way of the action and returns an unit value.
val encoder : unit -> encoderencoder () makes a new decoder.
val to_string : action -> string