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 compression.bzip3 ;
4 IN: compression.bzip3.ffi
8 { "input_size" object }
11 { $description Given an input size, outputs a possible output size after compression. Used in compression only. } ;
15 { "block_size" object } { "in" object } { "out" object } { "in_size" object } { "out_size" object }
18 { $description Available in the high level API. Usage of { $snippet "compress" } from the parent vocabulary is encouraged instead. } ;
20 HELP: bz3_decode_block
22 { "state" object } { "buffer" object } { "size" object } { "orig_size" object }
25 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
27 HELP: bz3_decode_blocks
29 { "states[]" object } { "buffers[]" object } { "sizes[]" object } { "orig_sizes[]" object } { "n" integer }
31 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
35 { "in" object } { "out" object } { "in_size" object } { "out_size" object }
38 { $description Available in the high level API. Usage of { $snippet "decompress" } from the parent vocabulary is encouraged instead. } ;
40 HELP: bz3_encode_block
42 { "state" struct } { "buffer" object } { "size" object }
45 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
47 HELP: bz3_encode_blocks
49 { "states[]" object } { "buffers[]" object } { "sizes[]" object } { "n" integer }
51 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
57 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
64 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
68 { "block_size" object }
69 { "bz3_state*" object }
71 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
74 { $class-description Structure for holding and passing state between low-level bzip3 functions. Consult { $link "compression.bzip3.ffi" } for more details. } ;
81 { $description Consult { $link "compression.bzip3.ffi" } for more details. } ;
87 { $description "Pushes the bzip3 version present on your system. compression.bz3's " { $snippet "version" } "is an alias for this word." } ;
90 ARTICLE: "compression.bzip3.ffi" "Compression.bzip3.ffi"
91 This vocabulary contains mainly high-level documentation. The words present in this vocabulary link to C functions and hence
92 must be used carefully. Some functions mutate their arguments.
94 Consult your local installation of { $snippet "libbz3.h" } , or read it at
95 { $url "https://github.com/kspalaiologos/bzip3/blob/master/include/libbz3.h" "GitHub" } for details that are up-to-date.
97 For an idea of how to use bzip3's compression functions, see the { $url "https://github.com/kspalaiologos/bzip3/blob/master/examples" "bzip3 examples" } .
100 ABOUT: "compression.bzip3.ffi"