DirectFB Reference Manual
IDirectFBDataBuffer   GetData

Fetch data from a streaming or static buffer.

GetData (
  IDirectFBDataBuffer *thiz
  unsigned int length
  void *data
  unsigned int *read
);

Static buffers will increase the data pointer. Streaming buffers will flush the data portion.

The maximum number of bytes to fetch is specified by "length", the actual number of bytes fetched is returned via "read".

  (C) Copyright by convergence GmbH