]> gitweb.factorcode.org Git - factor.git/blob - extra/compression/bzip3/ffi/ffi-docs.factor
9a2c8ceeffcc61e54489c222ddda911f76ae3570
[factor.git] / extra / compression / bzip3 / ffi / ffi-docs.factor
1 ! Copyright (C) 2022 Your name.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: classes.struct help.markup help.syntax kernel math ;
4 IN: compression.bzip3.ffi
5
6 HELP: bz3_bound
7 { $values
8     { "input_size" object }
9     { "size_t" object }
10 }
11 { $description "" } ;
12
13 HELP: bz3_compress
14 { $values
15     { "block_size" object } { "in" object } { "out" object } { "in_size" object } { "out_size" object }
16     { "int" object }
17 }
18 { $description Available in the high level API. Usage of { $link "compression.bzip3.compress" } is encouraged. } ;
19
20 HELP: bz3_decode_block
21 { $values
22     { "state" object } { "buffer" object } { "size" object } { "orig_size" object }
23     { "int32_t" object }
24 }
25 { $description "" } ;
26
27 HELP: bz3_decode_blocks
28 { $values
29     { "states[]" object } { "buffers[]" object } { "sizes[]" object } { "orig_sizes[]" object } { "n" integer }
30 }
31 { $description "" } ;
32
33 HELP: bz3_decompress
34 { $values
35     { "in" object } { "out" object } { "in_size" object } { "out_size" object }
36     { "int" object }
37 }
38 { $description Available in the high level API. Usage of { $link "compression.bzip3.decompress" } is encouraged. } ;
39
40 HELP: bz3_encode_block
41 { $values
42     { "state" struct } { "buffer" object } { "size" object }
43     { "int32_t" object }
44 }
45 { $description "" } ;
46
47 HELP: bz3_encode_blocks
48 { $values
49     { "states[]" object } { "buffers[]" object } { "sizes[]" object } { "n" integer }
50 }
51 { $description "" } ;
52
53 HELP: bz3_free
54 { $values
55     { "state" object }
56 }
57 { $description "" } ;
58
59 HELP: bz3_last_error
60 { $values
61     { "state" object }
62     { "int8_t" object }
63 }
64 { $description "" } ;
65
66 HELP: bz3_new
67 { $values
68     { "block_size" object }
69     { "bz3_state*" object }
70 }
71 { $description "" } ;
72
73 HELP: bz3_state
74 { $class-description "" } ;
75
76 HELP: bz3_strerror
77 { $values
78     { "state" object }
79     { "c-string" object }
80 }
81 { $description "" } ;
82
83 HELP: bz3_version
84 { $values
85     { "c-string" object }
86 }
87 { $description "" } ;
88
89 HELP: s16
90 { $var-description "" } ;
91
92 HELP: s32
93 { $var-description "" } ;
94
95 HELP: s8
96 { $var-description "" } ;
97
98 HELP: state
99 { $class-description "" } ;
100
101 HELP: u16
102 { $var-description "" } ;
103
104 HELP: u32
105 { $var-description "" } ;
106
107 HELP: u64
108 { $var-description "" } ;
109
110 HELP: u8
111 { $var-description "" } ;
112
113 ARTICLE: "compression.bzip3.ffi" "compression.bzip3.ffi"
114 This vocabulary contains mainly high-level documentation. 
115
116 Consult your local installation of { $snippet "libbz3.h" } , or read it at
117 { $url "https://github.com/kspalaiologos/bzip3/blob/master/include/libbz3.h" } for details that are up-to-date.
118 ;
119
120 ABOUT: "compression.bzip3.ffi"