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 a4533f0 commit 66b59e5
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -3,4 +3,5 @@ pom.xml
lib
classes
.DS_Store
push
push
autodoc
4 changes: 2 additions & 2 deletions src/gloss/core.clj
Expand Up @@ -86,7 +86,7 @@
A string with :delimiters specified is terminated by one or more delimiters:
(string :utf-8 :delimiters [\"\r\n\" \"\n\"])"
(string :utf-8 :delimiters [\"\\r\\n\" \"\\r\"])"
[charset & {:as options}]
(let [charset (name charset)]
(cond
Expand Down Expand Up @@ -160,7 +160,7 @@
But may also be a more complex frame:
(prefix
[(string :utf-8 :delimiters [\"\0\"]) :int64]
[(string :utf-8 :delimiters [\"\\0\"]) :int64]
second
(fn [n] [\"hello\" n]))
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/core/codecs.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.core.codecs
(ns ^{:skip-wiki true}
gloss.core.codecs
(:use
[gloss.data bytes string primitives]
[gloss.core protocols structure formats]))
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/core/formats.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.core.formats
(ns ^{:skip-wiki true}
gloss.core.formats
(:import
[java.nio
Buffer
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/core/protocols.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.core.protocols
(ns ^{:skip-wiki true}
gloss.core.protocols
(:use [gloss.core formats])
(:import [java.nio Buffer ByteBuffer]))

Expand Down
9 changes: 7 additions & 2 deletions src/gloss/core/structure.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.core.structure
(ns ^{:skip-wiki true}
gloss.core.structure
(:use
[clojure.walk]
[gloss.core protocols]
Expand Down Expand Up @@ -96,7 +97,11 @@

(defn compile-frame
"Takes a frame, and returns a codec. This function is idempotent; passing in a codec
is a safe operation."
is a safe operation.
Functions that transform the values after they are decoded and before they are encoded
can be specified, which allows the frame to only be an intermediate representation of
the final Clojure data structure."
([frame]
(if (reader? frame)
frame
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/bytes.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.bytes
(ns ^{:skip-wiki true}
gloss.data.bytes
(:use
[potemkin]
[gloss.core formats protocols])
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/bytes/core.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.bytes.core
(ns ^{:skip-wiki true}
gloss.data.bytes.core
(:import
[java.nio
Buffer
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/bytes/delimited.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.bytes.delimited
(ns ^{:skip-wiki true}
gloss.data.bytes.delimited
(:use
gloss.data.bytes.core
gloss.core.protocols
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/primitives.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.primitives
(ns ^{:skip-wiki true}
gloss.data.primitives
(:use
[gloss.data bytes]
[gloss.core protocols])
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/string.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.string
(ns ^{:skip-wiki true}
gloss.data.string
(:use
[potemkin])
(:require
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/string/codecs.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.string.codecs
(ns ^{:skip-wiki true}
gloss.data.string.codecs
(:use
[gloss.core formats protocols]
[gloss.data.bytes]
Expand Down
3 changes: 2 additions & 1 deletion src/gloss/data/string/core.clj
Expand Up @@ -6,7 +6,8 @@
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(ns gloss.data.string.core
(ns ^{:skip-wiki true}
gloss.data.string.core
(:use
[gloss.data bytes])
(:import
Expand Down

0 comments on commit 66b59e5

Please sign in to comment.