Changes between Version 1 and Version 2 of VectorStreams
- Timestamp:
- 03/22/10 12:07:38 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VectorStreams
v1 v2 45 45 46 46 [Function][[BR]] 47 '''UNSIGNED-INTEGER-TO-BINARY''' `value s`47 '''UNSIGNED-INTEGER-TO-BINARY''' `value len s` 48 48 49 Encodes the integer VALUE, which should be non-negative, on the VECTOR-OUTPUT-STREAM S using ULEB128. 49 Encodes the least significant (* LEN 8) bits of the integer VALUE in LEN big-endian bytes on the VECTOR-OUTPUT-STREAM S. 50 50 51 51 52 [Function][[BR]] 52 '''SIGNED-INTEGER-TO-BINARY''' `value s`53 '''SIGNED-INTEGER-TO-BINARY''' `value len s` 53 54 54 Encodes the integer VALUE on the VECTOR-OUTPUT-STREAM S. Negative integers are encoded in SLEB128 and non-negative integers in ULEB128.55 Encodes the integer VALUE in LEN big-endian bytes on the VECTOR-OUTPUT-STREAM S. 55 56 56 57 [Function][[BR]] 57 58 '''PARSE-UNSIGNED-INTEGER''' `vector &optional (start 0) end` 58 59 59 Decodes a ULEB128-encoded integer from the bounded range of VECTOR, 60 which must be of type (VECTOR (UNSIGNED-BYTE 8)). Returns two 61 values: that integer and the the index of the first octet in VECTOR 62 that follows the encoded integer. (The second value will be > start 63 and <= end) 60 Decodes a big-endian-encoded unsigned integer from the bounded range of VECTOR, 61 which must be of type (VECTOR (UNSIGNED-BYTE 8)). 64 62 65 63 [Function][[BR]] 66 64 '''PARSE-SIGNED-INTEGER''' `vector &optional (start 0) end` 67 65 68 As PARSE-UNSIGNED-INTEGER, but assumes SLEB128 encodingand may return69 a negative firstvalue.66 As PARSE-UNSIGNED-INTEGER, but interprets the bytes as encoding a signed integer and may return 67 a negative value. 70 68 71 69 [Function][[BR]] 72 '''PUI-STREAM''' `s `70 '''PUI-STREAM''' `s count` 73 71 74 Decodes a ULEB128-encoded integerfrom the VECTOR-INPUT-STREAM S and72 Decodes an unsigned integer encoded in COUNT bytes of big-endian data from the VECTOR-INPUT-STREAM S and 75 73 returns that value. 76 74 77 75 [Function][[BR]] 78 '''PSI-STREAM''' `s `76 '''PSI-STREAM''' `s count` 79 77 80 Decodes an SLEB128-encoded integer from the VECTOR-INPUT-STREAM S and 78 79 Decodes a signed integer encoded in COUNT bytes of big-endian data from the VECTOR-INPUT-STREAM S and 81 80 returns that value. 82 81 82
