use 5.014000;
use strict;
use warnings;
+use parent qw/Exporter/;
use IO::Uncompress::Brotli;
-use parent qw/Exporter/;
-
our @EXPORT = qw/bro/;
our @EXPORT_OK = @EXPORT;
_mode($$self, $mode)
}
-use constant {
- BROTLI_OPERATION_PROCESS => 0,
- BROTLI_OPERATION_FLUSH => 1,
- BROTLI_OPERATION_FINISH => 2
-};
-sub compress {
- my ($self, $data) = @_;
- $self->_compress($data, BROTLI_OPERATION_PROCESS )
-}
-
-sub flush {
- my ($self) = @_;
- $self->_compress('', BROTLI_OPERATION_FLUSH )
-}
-
-sub finish {
- my ($self) = @_;
- $self->_compress('', BROTLI_OPERATION_FINISH )
-}
1;
__END__
=head1 NAME
-IO::Compress::Brotli - [Not yet implemented] Write Brotli buffers/streams
+IO::Compress::Brotli - Write Brotli buffers/streams
=head1 SYNOPSIS