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();
+ my $state = BrotliDecoderCreateInstance();
bless \$state, $class
}
sub DESTROY {
my ($self) = @_;
- BrotliDestroyState($$self)
+ BrotliDecoderDestroyInstance($$self)
}
sub decompress {
my ($self, $data) = @_;
- BrotliDecompressStream($$self, $data)
+ BrotliDecoderDecompressStream($$self, $data)
}
# Untested, probably not working