Module CConvBencode

module CConvBencode: sig .. end

Interface to Bencode



type 'a or_error = [ `Error of string | `Ok of 'a ] 
type t = Bencode.t 
val target : t CConv.Encode.target
val source : t CConv.Decode.source
val encode : 'src CConv.Encode.encoder -> 'src -> t
val decode_exn : 'into CConv.Decode.decoder -> t -> 'into
val decode : 'into CConv.Decode.decoder -> t -> 'into or_error
val to_string : 'a CConv.Encode.encoder -> 'a -> string
val of_string : 'a CConv.Decode.decoder -> string -> 'a or_error
val of_string_exn : 'a CConv.Decode.decoder -> string -> 'a
val bencode_to_string : t -> string