   (:require
     [multicodec.core :as codec]))
 
-
-;; ## Filter Codec
 
 (defrecord FilterCodec
   [header codec encoding-fn decoding-fn]

        value))))


(defn filter-codec
  "Creates a new filter codec, wrapping the given codec. Opts may include:


  - `:encoding` function which will transform values before they are encoded
  - `:decoding` function which will transform values after they are decoded"
  [codec & {:as opts}]
  (->FilterCodec
    (:header opts (:header codec))
    codec
    (:encoding opts)
    (:decoding opts)))
