our @EXPORT = qw/unbro/;
our @EXPORT_OK = @EXPORT;
-our $VERSION = '0.001';
+our $VERSION = '0.001001';
require XSLoader;
XSLoader::load('IO::Compress::Brotli', $VERSION);
-sub create {
- my ($class) = @_;
- my $state = BrotliCreateState();
- bless \$state, $class
-}
-
-sub DESTROY {
- my ($self) = @_;
- BrotliDestroyState($$self)
-}
-
-sub decompress {
- my ($self, $data) = @_;
- BrotliDecompressStream($$self, $data)
-}
-
-# Untested, probably not working
-sub set_dictionary {
- my ($self, $dict) = @_;
- BrotliSetCustomDictionary($$self, $dict)
-}
-
1;
__END__