PS_GET_BUFFER(3)
πΈ NAME πΈ
PS_get_buffer β bestie, it hands you back the internal memory buffer π
β¨ SYNOPSIS β¨
#include <pslib.h>
const char *PS_get_buffer(PSDoc *psdoc, long *size)
π¦ DESCRIPTION π¦
okay so here's the tea π« β when your document was created in memory, this function returns the current internal memory buffer. that's it, that's the whole vibe.
but listen, this part is important, no cap: the internal buffer gets set to a length of 0 when you call this function. π literally zero, immediately, the second you call it.
so you should output or save that returned buffer pointer before you call any other pslib functions. like, do it right away, don't get distracted, don't go check your other tabs π
and the size parameter? that's your girl for retrieving the number of bytes in the buffer. πβ¨
π RETURN VALUE π
ngl the original page just leaves this section sitting there empty π no cap, nothing to report, we move.
π SEE ALSO π
PS_open_file(3)β go read that one too, iykyk π¦
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. icon behavior, honestly π
and that's the whole page, bestie π«Ά it's PS_GET_BUFFER(3) from the Library Functions Manual, and yeah, the page doesn't hand us a date so we're just vibing without one π periodt π
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms