vrb_space_len(3)

πŸ“¦ version 0.5.1, in nixos 26.05

πŸ’– NAME πŸ’–

vrb_space_len β€” return the length of space ✨

Hey bestie, welcome to the vrb_space_len(3) page from the VRB Programmer's Manual πŸ’…. We're gonna get you comfy with this lil' function, no cap.

πŸ“š LIBRARY πŸ“š

-lvrb

✨ SYNOPSIS ✨

#include <vrb.h>

size_t vrb_space_len(vrb_p vrb);

🌸 DESCRIPTION 🌸

Okay so vrb_space_len returns the total length of space available in the given virtual ring buffer. This is the maximum space the caller may store into the buffer from the pointer returned by vrb_space_ptr(3). That's the whole vibe: it tells you how much room you've got to work with. πŸ’–

πŸŽ€ ARGUMENTS πŸŽ€

  • vrb_p vrb β€” specifies the virtual ring buffer to obtain the length of available space in. If a NULL or invalid pointer is given, results are unpredictable and are likely to be disasterous 😭. Like, do not pass a bad pointer, bestie β€” that's not the move.

πŸ¦‹ RETURN VALUE πŸ¦‹

  • size_t β€” the length of available space in the virtual ring buffer is returned. Slay. ✨

πŸ”₯ SEE ALSO πŸ”₯


This lil' page comes from the vrb source/version, dated 2002-09-30 🫢 β€” mwah, go read the buffer bestie! πŸ’‹

πŸ“¦ where this page comes from