- make-cbor-codec TAG PREDICATE ENCODER DECODERprocedure
PREDICATE recognizes values of the type. ENCODER is called with three arguments: the value, a procedure that writes a nested Scheme value, and the output port (for writing tokens directly with cbor-core). It must write exactly one data item, the content of the tag; the tag itself is written before it. DECODER is called with the decoded content and returns the value.