README

hustcer/fbr/encode does not have a README file

#
BrotliOptions

pub(all) struct BrotliOptions {
quality : Int
window_bits : Int
max_input_size : Int
} derive(
Debug
)

future suffix-tree/Zopfli backend.

#
BrotliOptions::default

fn BrotliOptions::default() -> BrotliOptions

Return the default Brotli compression options.

#
BrotliStream

pub(all) struct BrotliStream {
ondata :
FbrStreamHandler
?
// private fields
}

Buffering convenience wrapper around brotli_sync.

Input chunks are buffered until the final push, then encoded with brotli_sync and emitted through ondata. This is not a true incremental Brotli encoder.

#
BrotliStream::new

Create a Brotli compression stream.

#
BrotliStream::push

fn BrotliStream::push(self : BrotliStream, chunk : FixedArray[Byte], final_? : Bool) -> Unit raise
FbrError

Push one input chunk into the Brotli compression stream.

#
BrotliStream::set_ondata

fn BrotliStream::set_ondata(self : BrotliStream, handler : (FixedArray[Byte], Bool) -> Unit) -> Unit

Set the output callback for a Brotli compression stream.

#
brotli_sync

fn brotli_sync(data : FixedArray[Byte], opts? : BrotliOptions) -> FixedArray[Byte] raise
FbrError

Compress bytes into a Brotli stream.

The current encoder backend supports Brotli quality levels 0 through 11.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io