~theothornhill/cl-bare

bf5ce6217b6421ad775d72787c819eb8fbfcd576 — Theodor Thornhill 3 years ago 1e87618
Add a little documentation to special var
1 files changed, 5 insertions(+), 2 deletions(-)

M src/bare.lisp
M src/bare.lisp => src/bare.lisp +5 -2
@@ 1,7 1,5 @@
(in-package :cl-bare)

(defvar *data-length* 1)

(defun read-uvarint (stream)
  "Read an unsigned varint from STREAM."
  (loop


@@ 126,6 124,11 @@
                     (slot-value size 'value)
                     :external-format :utf-8)))

(defvar *data-length* 1
  "Length for the arbitrary length DATA type.

Set this dynamically in the function calling the DATA defbinary.")

(defbinary data
    ()
    (size 0 :type (uint))