Fsdb::S...omments(3)
π NAME π
okay bestie, welcome to Fsdb::Support::DelayPassComments(3) β aka the Fsdb::S...omments(3) page, user-contributed Perl documentation vibes β¨. lowkey the whole point is: support for buffering comments. that's it. that's the assignment π
.
β¨ SYNOPSIS β¨
the vibe check is literally: buffer and send out comments π«Ά.
π FUNCTIONS π
π¦ new π¦
okay so you can make one like this:
$filter->{_delay_pass_comments} = new Fsdb::Support::DelayPassComments;
or β and honestly more likely β you use it indirectly with Fsdb::Filter and Fsdb::IO::Reader:
$self->{_in} = finish_io_options('input', -comment_handler => create_delay_pass_comments_sub);
$self->{_out} = new Fsdb::IO::Writer(...);
...
# in Fsdb::Filter
$self->{_delay_comments}->flush($self->{_out};
this creates a buffer for comments that will run with bounded memory usage π. new requires the output stream, a Fsdb::IO::Writer object. and Fsdb::Filter will dump these after all other output. periodt πβ¨.
πΈ enqueue πΈ
$dpc->enqueue($comment [, $other_comments...])
save up the $COMMENT. that's the whole move π.
π spill_to_disk π
$dpc->spill_to_disk
internal: switch from in-memory caching to disk caching π¦. very much a behind-the-scenes main character moment.
π flush π
$dpc->flush($output_fsdb);
dump all saved comments to the saved Fsdb::IO::Writer, or β if $OUTPUT_FSDB is undef β then to stdout. slay π
π₯.
xoxo, your fave manpage bestie π«Ά β this was served fresh from perl v5.32.1, dated 2024-08-02, on the Fsdb::S...omments(3) page ππ
π¦ 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