Initial import.
[salza2.git] / types.lisp
blob79a77ba89199c5e3715329703df4158041a40750
1 ;;;; $Id: types.lisp,v 1.3 2007/12/09 00:54:32 xach Exp $
3 (in-package #:salza2)
5 (deftype array-index ()
6 `(mod ,array-dimension-limit))
8 (deftype octet ()
9 '(unsigned-byte 8))
11 (deftype octet-vector ()
12 '(simple-array (unsigned-byte 8) (*)))
14 (deftype input-index ()
15 '(unsigned-byte 16))
17 (deftype input-buffer ()
18 `(simple-array (unsigned-byte 8) (,+input-size+)))
20 (deftype chains-buffer ()
21 `(simple-array (unsigned-byte 16) (,+input-size+)))
23 (deftype hashes-buffer ()
24 `(simple-array (unsigned-byte 16) (,+hashes-size+)))
26 (deftype hash ()
27 `(integer 0 ,+hashes-size+))
29 (deftype bitstream-buffer ()
30 `(simple-array (unsigned-byte 8) (,+bitstream-buffer-size+)))
32 (deftype bitstream-buffer-bit-count ()
33 `(integer 0 ,+bitstream-buffer-bits+))