Skip to content

Commit

Permalink
Add opcodes 0x4b (BININT1), 0x86 (TUPLE2) and 0x61 (APPEND)
Browse files Browse the repository at this point in the history
  • Loading branch information
eckardt committed Aug 24, 2015
1 parent 493cd0d commit e42197c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pickler/parser.clj
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@
(let [val (bit-and (.getInt bb) 0xffffffff)]
{:type :int :val val}))

(defmethod opcode 0x4b
[_ bb]
(let [val (bit-and (-> bb .get .byteValue) 0xff)]
{:type :int :val val}))

(defmethod opcode 0x47
[_ bb]
(.order bb ByteOrder/BIG_ENDIAN)
Expand All @@ -88,6 +93,14 @@
[_ bb]
{:type :tuple})

(defmethod opcode 0x86
[_ bb]
{:type :tuple})

(defmethod opcode 0x61
[_ bb]
{:type :append})

(defmethod opcode 0x65
[_ bb]
{:type :append})
Expand Down

0 comments on commit e42197c

Please sign in to comment.