   "An encoder converts values to binary sequences and writes the results to an
   output stream."
 
-  (encode-to
-    [codec output value]
+  (encode
+    [codec ^java.io.OutputStream output value]
     "Write the value as a sequence of bytes to the output stream. Returns the
     number of bytes written."))
 


  Decoder

  (decode-from
    [this input]
    ; TODO: read header, select decoder, use codec to read value
    nil))


  Encoder

  (encode
    [this output value]
    ; TODO: select encoder, write out header, use codec to write value
    nil)
