Changes between Version 1 and Version 2 of VectorStreams
 Timestamp:
 03/22/10 17:07:38 (6 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

VectorStreams
v1 v2 45 45 46 46 [Function][[BR]] 47 '''UNSIGNEDINTEGERTOBINARY''' `value s`47 '''UNSIGNEDINTEGERTOBINARY''' `value len s` 48 48 49 Encodes the integer VALUE, which should be nonnegative, on the VECTOROUTPUTSTREAM S using ULEB128. 49 Encodes the least significant (* LEN 8) bits of the integer VALUE in LEN bigendian bytes on the VECTOROUTPUTSTREAM S. 50 50 51 51 52 [Function][[BR]] 52 '''SIGNEDINTEGERTOBINARY''' `value s`53 '''SIGNEDINTEGERTOBINARY''' `value len s` 53 54 54 Encodes the integer VALUE on the VECTOROUTPUTSTREAM S. Negative integers are encoded in SLEB128 and nonnegative integers in ULEB128.55 Encodes the integer VALUE in LEN bigendian bytes on the VECTOROUTPUTSTREAM S. 55 56 56 57 [Function][[BR]] 57 58 '''PARSEUNSIGNEDINTEGER''' `vector &optional (start 0) end` 58 59 59 Decodes a ULEB128encoded integer from the bounded range of VECTOR, 60 which must be of type (VECTOR (UNSIGNEDBYTE 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 bigendianencoded unsigned integer from the bounded range of VECTOR, 61 which must be of type (VECTOR (UNSIGNEDBYTE 8)). 64 62 65 63 [Function][[BR]] 66 64 '''PARSESIGNEDINTEGER''' `vector &optional (start 0) end` 67 65 68 As PARSEUNSIGNEDINTEGER, but assumes SLEB128 encodingand may return69 a negative firstvalue.66 As PARSEUNSIGNEDINTEGER, but interprets the bytes as encoding a signed integer and may return 67 a negative value. 70 68 71 69 [Function][[BR]] 72 '''PUISTREAM''' `s `70 '''PUISTREAM''' `s count` 73 71 74 Decodes a ULEB128encoded integerfrom the VECTORINPUTSTREAM S and72 Decodes an unsigned integer encoded in COUNT bytes of bigendian data from the VECTORINPUTSTREAM S and 75 73 returns that value. 76 74 77 75 [Function][[BR]] 78 '''PSISTREAM''' `s `76 '''PSISTREAM''' `s count` 79 77 80 Decodes an SLEB128encoded integer from the VECTORINPUTSTREAM S and 78 79 Decodes a signed integer encoded in COUNT bytes of bigendian data from the VECTORINPUTSTREAM S and 81 80 returns that value. 82 81 82