Skip to content

Commit

Permalink
Merge branch 'master' into performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ztellman committed Jan 2, 2011
2 parents 4cb11d0 + 9603320 commit 56533b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gloss/data/bytes/.#core.clj
4 changes: 2 additions & 2 deletions src/gloss/data/bytes/delimited.clj
Expand Up @@ -128,7 +128,7 @@
(doseq [v vs]
(write-bytes codec buf v))
(.put ^ByteBuffer buf (duplicate suffix)))
(apply concat
(map #(write-bytes codec buf %) vs)
(concat
(mapcat #(write-bytes codec buf %) vs)
[(duplicate suffix)]))))))

3 changes: 3 additions & 0 deletions test/gloss/test/core.clj
Expand Up @@ -116,6 +116,9 @@
(test-roundtrip
(repeated :byte :delimiters [64])
(range 10))
(test-roundtrip
(repeated (string :utf-8 :delimiters ["/n"]) :delimiters ["/0"])
["foo" "bar" "baz"])
(test-roundtrip
(repeated {:a :int32 :b :int32})
(repeat 10 {:a 1 :b 2}))
Expand Down

0 comments on commit 56533b5

Please sign in to comment.