Stream::Buffered(3)

πŸ’– Stream::Buffered πŸ’–

okay so bestie, welcome to Stream::Buffered(3) β€” a User Contributed Perl Documentation page that is genuinely just here to help you buffer bytes πŸ’Ύβœ¨. Think of it as a tiny holding pen for data: you feed it arbitrary length of byte strings, and once everything’s buffered you can get a seekable filehandle back. It’s giving β€œtemporary storage, but make it cute” πŸŽ€.


✨ NAME ✨

Stream::Buffered - temporary buffer to save bytes πŸ’…

🌸 SYNOPSIS 🌸

here’s the whole vibe in code, bestie:

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

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Stream::Buffered is a buffer class to store arbitrary length of byte strings and then get a seekable filehandle once everything is buffered β€” no cap, that’s highkey the whole point πŸ”₯. It uses PerlIO and/or temporary file to save the buffer depending on the length of the size. ngl, the way it switches up the storage is lowkey main character energy πŸ˜­πŸ’œ.

πŸ‘‘ SEE ALSO πŸ‘‘

  • Plack::Request β€” go look, bestie, it’s right there in the SEE ALSO section for a reason, iykyk 🫢

πŸ’œ AUTHOR πŸ’œ

Tatsuhiko Miyagawa ✨

This module is part of Plack, and it’s released as a separate distribution for easier reuse. We love a reusable icon, slay β€” obsessed πŸ’….

The following copyright notice applies to all the files provided in this distribution, including binary files, unless explicitly noted otherwise.

Copyright 2009-2011 Tatsuhiko Miyagawa

⭐ LICENSE ⭐

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Literally the same terms as Perl itself β€” periodt, fr fr πŸŽ€.

that’s the whole page, bestie β€” this one comes from the source/version perl v5.42.0, dated the date 2014-09-15, and it’s filed under the page name Stream::Buffered(3). bye bestie πŸ’–

πŸ“¦ where this page comes from