Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ztellman committed Dec 24, 2010
1 parent 66b59e5 commit c987315
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gloss/core.clj
Expand Up @@ -35,7 +35,12 @@
`(defcodec ^{:private true} ~name ~frame))

(import-fn #'protocols/sizeof)
(import-fn bytes/byte-count)

(defn byte-count
"Returns the number of bytes in the value. Compatible with any data structure that can
be transformed into a sequence of ByteBuffers."
[b]
(bytes/byte-count (to-buf-seq b)))

;;;

Expand Down

0 comments on commit c987315

Please sign in to comment.