| Reference Manual - 1.4.3

IDirectFBDataBuffer | PeekData

#### Peek data from a streaming or static buffer.

DFBResult PeekData (
| IDirectFBDataBuffer |  | * | thiz,
| unsigned int |  |  | length,
| int |  |  | offset,
| void |  | * | ret_data,
| unsigned int |  | * | ret_read
);

Unlike GetData() this method won't increase the data pointer or flush any portions of the data held.

Additionally an offset relative to the current data pointer or beginning of the streaming buffer can be specified.

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

| This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License