CrystalSpace

Public API Reference

Public Member Functions
csParasiticDataBufferPooled Class Reference

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

#include <csutil/parasiticdatabuffer.h>

Inheritance diagram for csParasiticDataBufferPooled:
scfImplementationPooled< scfImplementationExt0< csParasiticDataBufferPooled, csParasiticDataBufferBase > > scfImplementationExt0< csParasiticDataBufferPooled, csParasiticDataBufferBase > csParasiticDataBufferBase scfImplementation1< csParasiticDataBufferBase, iDataBuffer > scfImplementation< csParasiticDataBufferBase > iDataBuffer iBase scfImplementationHelper CS::Memory::CustomAllocated iBase

List of all members.

Public Member Functions

 csParasiticDataBufferPooled (iDataBuffer *parent, size_t offs, size_t size=(size_t)~0)
 Construct this data buffer.

Detailed Description

A databuffer pointing into another databuffer, pooled version.

Use like this:

  csParasiticDataBufferPooled::Pool bufferPool;
  ...
  csRef<iDataBuffer> buf;
   buf.AttachNew (new (bufferPool) 
     csParasiticDataBufferPooled (someOtherBuffer, Offset));

Definition at line 116 of file parasiticdatabuffer.h.


Constructor & Destructor Documentation

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

Construct this data buffer.

Parameters:
parentThe buffer to point into.
offsOffset into the buffer of the data to return.
sizeData size to return. Can not be larger than the parent's size minus the offset. This maximum possible size is also taken when size == ~0.

Definition at line 130 of file parasiticdatabuffer.h.


The documentation for this class was generated from the following file:

Generated for Crystal Space 2.0 by doxygen 1.7.6.1