SbByteBuffer(3)
β¨ SbByteBuffer β¨
okay bestie, welcome to the Coin manual, section 3 β yes we're in the library pages now, it's giving "grown-up Unix" and honestly? we ate. π
This one's about SbByteBuffer β literally just a little byte bucket. No cap. Let's get into it. π¦
πΈ SYNOPSIS πΈ
π Public Member Functions π
Here's the whole lineup, fr fr. Every single one, no skipping, we don't do that here. π
SbByteBuffer (const char *buffer)
SbByteBuffer (const SbByteBuffer &buffer)
SbByteBuffer (size_t size=0, const char *buffer=NULL)
SbByteBuffer (size_t size, const unsigned char *buffer)
SbBool isValid () const
size_t size () const
SbBool empty () const
const char & operator[] (size_t idx) const
SbByteBuffer & operator= (const SbByteBuffer &in)
SbBool operator== (const SbByteBuffer &that) const
SbByteBuffer & operator+= (const SbByteBuffer &buf)
void push (const SbByteBuffer &buf)
const char * constData () const
char * data ()
void makeUnique ()
π Static Public Member Functions π
static SbByteBuffer & invalidBuffer ()
π Let's Talk About These Functions π
So the vibe is: you got four constructors up top β one that takes a const char *, one that copies another SbByteBuffer (hello, copy constructor, you're iconic), one that takes a size_t size defaulting to 0 plus a const char *buffer defaulting to NULL, and one that takes a size_t size and a const unsigned char *buffer. Pick your fighter. π«Ά
Then you got your little utility squad:
isValid()β returns anSbBool, tells you if this thing is actually valid. Vibe check, basically. βsize()β returns asize_t, the size. She's honest, she's direct. πempty()β returns anSbBool, is it empty or not. The audacity of a one-word answer. πoperator[]β takes asize_t idxand hands you back aconst char &. Read-only peek energy. πoperator=β takes aconst SbByteBuffer &inand returns anSbByteBuffer &. Assignment, but make it fashion. β¨operator==β takes aconst SbByteBuffer &thatand returns anSbBool. Are you two the same? Inquiring minds need to know. πoperator+=β takes aconst SbByteBuffer &buf, returns anSbByteBuffer &. Append szn. π₯push()β takes aconst SbByteBuffer &buf, returnsvoid. Same energy as+=, different font. πconstData()β returns aconst char *. Read-only access, hands off bestie. πdata()β returns achar *. Mutable access, go off. βmakeUnique()β returnsvoid. Makes it unique. She said "I'm not sharing." π
And over in static land, we got:
invalidBuffer()βstatic, returns anSbByteBuffer &. It's the designated invalid one. When you need a buffer that is, respectfully, not it. π
lowkey note: every single one of these is exactly as written up in the synopsis β no renaming, no merging, no inventing extra options. we keep the facts, we just make them cute. π§
π Author π
Generated automatically by Doxygen for Coin from the source code. (Yes, a robot wrote it. And it slayed. π€β¨)
Version 4.0.10 Β· Thu Jun 25 2026 00:00:00
okay that's the whole page bestie, mwah, go forth and buffer responsibly π«ΆππΈ periodt π¦
π¦ where this page comes from
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms