logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Stream::Buffered - temporary buffer to save bytes

Author

       Tatsuhiko Miyagawa

       This module is part of Plack, released as a separate distribution for easier reuse.

Description

       Stream::Buffered is a buffer class to store arbitrary length of byte strings and then get a seekable
       filehandle once everything is buffered. It uses PerlIO and/or temporary file to save the buffer depending
       on the length of the size.

License

       This library is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.36.0                                       2022-10-21                              Stream::Buffered(3pm)

Name

       Stream::Buffered - temporary buffer to save bytes

See Also

       Plack::Request

Synopsis

         my $buf = Stream::Buffered->new($length);
         $buf->print($bytes);

         my $size = $buf->size;
         my $fh   = $buf->rewind;

See Also