CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csParasiticDataBufferPooled Class Reference

A databuffer pointing into another databuffer, pooled version. More...

#include <csutil/parasiticdatabuffer.h>

List of all members.

Public Member Functions

void SetContents (iDataBuffer *parent, size_t offs, size_t size=(size_t)~0)
 Set contents of this data buffer.


Detailed Description

A databuffer pointing into another databuffer, pooled version.

Use like this:

  csParasiticDataBufferPooled::Pool bufferPool;
  ...
  csRef<iDataBuffer> buf;
  {
    csParasiticDataBufferPooled* bufPtr = bufferPool.Alloc ();
    bufPtr->SetContents (someOtherBuffer, Offset);
    buf.AttachNew (bufPtr);
  }

Definition at line 113 of file parasiticdatabuffer.h.


Member Function Documentation

void csParasiticDataBufferPooled::SetContents iDataBuffer parent,
size_t  offs,
size_t  size = (size_t)~0
[inline]
 

Set contents of this data buffer.

Warning: Only call if you did not pass this buffer around yet!

Definition at line 124 of file parasiticdatabuffer.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1