From b790c77c5e42a220a8419c69dbea3e392ee60fbe Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sun, 2 Aug 2026 23:38:05 -0300 Subject: Revert "format" This reverts commit fee14f4b29840357f87f02d51953f41ce90f7d9e. --- lib/concepts/Object.mli | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/concepts/Object.mli') diff --git a/lib/concepts/Object.mli b/lib/concepts/Object.mli index 7b0c4fd..e132673 100644 --- a/lib/concepts/Object.mli +++ b/lib/concepts/Object.mli @@ -4,10 +4,13 @@ module type S = sig type t val equal : t -> t -> bool + val to_bencode : t -> bencode val of_bencode : bencode -> (t, Condition.condition) result + val to_blob : t -> Representation.blob val of_blob : Representation.blob -> (t, Condition.condition) result + val to_bytes : t -> bytes val of_bytes : bytes -> (t, Condition.condition) result end @@ -17,6 +20,7 @@ module type OBJECT = S module Field : sig val string : string -> bencode val address : Hash.hash -> bencode + val require_string : string -> bencode -> (string, Condition.condition) result val require_address : -- cgit v1.2.3