 
 (defcodec GET ["GET" CR])
 (defcodec GETS ["GETS" CR])
+
 (defcodec VALUE ["VALUE" CR CR])
-(defcodec END ["END\r\n"])
-
-; to test (decode GET-REPLY gets_test_b)
-; (decode GET-REPLY (encode GET-REPLY [["VALUE" "abc" "123"] ["VALUE" "abc" "123"]])) 
-; (defcodec GET-REPLY (repeated VALUE :prefix :none :delimiters ["END\r\n"]))
+(defcodec END ["END"])
 
 ;VALUE <key> <flags> <bytes> [<cas unique>]\r\n
 ;<data block>\r\n


(defcodec ERRC (string :utf-8))

;(def sb (java.nio.ByteBuffer/wrap (.getBytes "STORED\r\nVALUE abc\r\n123\r\n")))
;(defcodec X ["STORED" CR C CR CR "END" CR])
;(def end_test_b (java.nio.ByteBuffer/wrap (.getBytes "END\r\n")))

;(def get_test_b (java.nio.ByteBuffer/wrap (.getBytes "VALUE abc\r\n123\r\n")))
;(def gets_test_b (java.nio.ByteBuffer/wrap (.getBytes "VALUE abc\r\n123\r\nVALUE cde\r\n456\r\nEND\r\n")))
;(def value_test_b (java.nio.ByteBuffer/wrap (.getBytes "VALUE abc\r\n123\r\n")))
;(def values_test_b (java.nio.ByteBuffer/wrap (.getBytes "VALUE abc\r\n123\r\nVALUE cde\r\n456\r\n")))

(defcodec CMDS
          (header C

(def TRM-DATA-BLOCK (string :utf-8 :suffix "\r\n"))
(def C (string :utf-8 :delimiters " "))
(def K (string :utf-8 :delimiters " "))
(def V (string :utf-8 :delimiters " "))
(def CR (string :utf-8 :delimiters ["\r\n"]))

(defcodec SET ["SET" CR])
