Plucen...Stream(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

✨ Plucene::Store::OutputStream πŸ’…

okay bestie, welcome to the Plucene::Store::OutputStream page β€” it's a perl module living in the User Contributed Perl Documentation section, and it's literally the plumbing that makes Plucene's index writing go brrr. πŸ¦‹


🌸 SYNOPSIS

# isa Plucene::Store::InputStream

no cap, that's the whole synopsis. it's giving "abstract class, know your role." πŸ’€


πŸŽ€ DESCRIPTION

so here's the tea β˜• β€” this is an abstract class for output to a file in a Directory. it's a random-access output stream, and it's the one doing all the heavy lifting for every single Plucene index output operation. main character energy, honestly. πŸ‘‘


πŸ’– METHODS

⭐ new

Create a new Plucene::Store::OutputStream. fresh out the box, brand new, slay. ✨

⭐ clone

Clone this. same vibe, different object. 🫢

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

File operations. the whole lil squad of them: fh, read, seek, tell, getc, print, eof, and close. all of them. no skips. πŸ“š

⭐ write_byte

This will write a single byte. one. uno. that's it, that's the method. πŸ’…

⭐ write_int

This will write an int as four bytes. four bytes, exactly, don't @ me. πŸ”₯

⭐ write_vint

This will write an int in a variable length format. so like, size may vary, iykyk. 🌈

⭐ write_long

This will write a long as eight bytes. eight. octet energy. πŸ‘‘

⭐ write_vlong

This will write a long in variable length format. same variable-length vibe, but long. πŸ’œ

⭐ write_string

This will write a string. just a string. out it goes. πŸŽ€


lowkey important reminder bestie: this is an abstract class, so don't go instantiating it and expecting a whole personality. it's the blueprint, not the build. πŸ™ˆ

and that's the whole page, fr fr β€” brought to you by perl v5.36.0, dated 2022-12-04, straight from the User Contributed Perl Documentation. mwah, go write some streams πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from