Fsdb::I...layable(3)
β¨ NAME β¨
Fsdb::IO::Replayable β support for buffering fsdb rows. That's the whole serve. This is the Fsdb::I...layable(3) page in the User Contributed Perl Documentation, and bestie, it's literally about buffering and replaying fsdb rows. π«Ά
π¦ SYNOPSIS π¦
Buffer and replaying fsdb rows. Short, sweet, already giving main-character energy. π
πΈ FUNCTIONS πΈ
π new π
$replayable = new Fsdb::IO::Replayable(-writer_args => \@writer_args,
-reader_args => \@reader_args);
$writer = $replayable->writer;
$replayable->close; # warning: close replayable, NOT writer
$reader = $replayable->reader;
Okay so this creates a buffer for Fsdb::IO objects that will run with bounded memory usage. After you close it, you can replay it one or more times by opening readers. It's giving replay-button energy, iykyk. π
Arguments to the new method:
-writer_args => @arrefβ gives arguments to pass toFsdb::IO::Writerto make a new stream.-reader_args => @arrefβ gives arguments to pass toFsdb::IO::Readerto make a new stream.-tmpdir => $dirnameβ specifies where tmpfiles go.
β οΈ Warning from the code: close the replayable, NOT the writer. Do not come for me if you mix that up, bestie. π
π writer π
$writer = $replayable->writer;
Returns a fsdb writer object. If the file was written already, it resets it for rewriting. Slay β rewind and go again. π
π₯ close π₯
$replayable->close;
Closes the replayable for writing. Closes the writer object, if any. Allows reading to start. So like, finish writing, then the readers can pull up. Periodt. π
π«Ά reader π«Ά
$reader = $replayable->reader;
Returns a fsdb reader object to re-read the file. Can be called once. The caller is expected to close and discard any readers. No cap β one reader call, and you gotta clean up after yourself. π§
pout π That's the whole page, bestie. Brought to you by perl v5.32.1, dated 2024-08-02, and filed under Fsdb::I...layable(3). Byeee! πβ¨
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms