Skip to content

Commit

Permalink
deserialize bin-data type
Browse files Browse the repository at this point in the history
  • Loading branch information
nicferrier committed Aug 25, 2012
1 parent 1261ccf commit 92241fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bson.el
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,11 @@
(defsubst bson-deserialize-binary ()
(let* ((size (bson-deserialize-int32))
(subtype (bson-deserialize-byte))
(start (point))
(bytes
(string-bytes
(buffer-substring-no-properties start (+ start size)))))
bytes))
(start (point)))
(goto-char (+ start size))
(list
subtype
(buffer-substring-no-properties start (point)))))

(defsubst bson-deserialize-symbol ()
(intern (bson-deserialize-string)))
Expand Down

0 comments on commit 92241fa

Please sign in to comment.