Plucen...tStream(3pm)

πŸ“¦
version 1.25 Β· 2 versions
  • 1.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Plucen...tStream(3pm) β€” the manual page, but make it cute ✨

okay bestie, so this is Plucene::Store::InputStream(3pm), straight out of the User Contributed Perl Documentation, and it is literally the plumbing that keeps the whole Plucene index fed. let's get into it πŸ’…


πŸŽ€ NAME πŸŽ€

Plucene::Store::InputStream β€” a random-access input stream. that's it, that's the vibe.


🌸 SYNOPSIS 🌸

# isa IO::File

yes bestie, it is an IO::File. she inherited the whole family's good genes. 🧬


πŸ¦‹ DESCRIPTION πŸ¦‹

A random-access input stream. she's used for all Plucene index input operations β€” every single one. no cap. if Plucene needs to read something from an index, bestie, this is the girl doing it. 🫢


πŸ’– METHODS πŸ’–

⭐ new

my $inputstream = Plucene::Store::InputStream->new($file);

Create a new input stream. that's the whole thing. you hand her a $file, she hands you back a fresh new stream, ready to serve. main character energy fr fr. πŸ‘‘

🌈 fh / read / seek / tell / getc / print / eof / close

File operations. all of them. she's got the whole toolkit and she's not gatekeeping β€” fh, read, seek, tell, getc, print, eof, close. pick your fave, she ate. πŸ”₯

πŸ’€ clone

This will return a clone of this stream. yes, like a little twin. same stream, different girl. 😭

🌸 read_byte

This will read and return a single byte. one. singular. byte. iconic minimalism. ✨

πŸ“ read_int

This will read four bytes and return an integer. four bytes in, one integer out, that's the trade. πŸ’œ

🧚 read_vint

This will read an integer stored in a variable-length format. variable length?? she's flexible, she's adaptable, she's thriving. πŸ¦‹

πŸ’… read_vlong

This will read a long and stored in variable-length format. yes, a long, and yes, still variable-length. she does not care about your fixed-width expectations. not me being obsessed with her range. πŸ™ˆ

🌟 read_string

This will read a string. a whole string. bestie deserves it. πŸŽ€

πŸ‘‘ read_long

This will read eight bytes and return a long. eight bytes this time, because a long is built different. periodt. πŸ’–


lowkey a PSA bestie: this is the input half of the store duo. everything here reads β€” nothing writes, nothing deletes. that's somebody else's job. iykyk 🌈

and that's the whole page!! no skipped options, no missing details, we keep every fact and just added ✨flair✨. this was perl v5.36.0, dated 2022-12-04, from the Plucen...tStream(3pm) manual page β€” tysm for reading, ily, go read some bytes πŸ«ΆπŸ’–πŸŒΈ

πŸ“¦ where this page comes from