]> iEval git - io-compress-brotli.git/blobdiff - lib/IO/Compress/Brotli.pm
Consistency between encoder/decoder boilerplate
[io-compress-brotli.git] / lib / IO / Compress / Brotli.pm
index ed7fbf43e4f87c85513a1ef928590f7bec262204..0e1d7655dd4b0242900b51c2b1c1ed94de6acd60 100644 (file)
@@ -3,11 +3,10 @@ package IO::Compress::Brotli;
 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;
 
@@ -23,25 +22,6 @@ sub mode {
     _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__
@@ -50,7 +30,7 @@ __END__
 
 =head1 NAME
 
-IO::Compress::Brotli - [Not yet implemented] Write Brotli buffers/streams
+IO::Compress::Brotli - Write Brotli buffers/streams
 
 =head1 SYNOPSIS
 
This page took 0.02629 seconds and 4 git commands to generate.