]> gitweb.factorcode.org Git - factor.git/blob - extra/leb128/leb128-docs.factor
leb128: support unsigned and signed LEB128 format
[factor.git] / extra / leb128 / leb128-docs.factor
1
2 USING: byte-arrays help.markup help.syntax ;
3
4 IN: leb128
5
6 ARTICLE: "leb128" "LEB128 Encoding"
7
8 Implements support for the LEB128 (Little Endian Base 128) encoding format,
9 both unsigned and signed.
10
11 Unsigned LEB123:
12 { $subsections
13     >uleb128
14     uleb128>
15     write-uleb128
16     stream-write-uleb128
17     read-uleb128
18     stream-read-uleb128
19 }
20
21 Signed LEB123:
22 { $subsections
23     >leb128
24     leb128>
25     write-leb128
26     stream-write-leb128
27     read-leb128
28     stream-read-leb128
29 } ;
30
31 ABOUT: "leb128"