#include <XspfChunkCallback.h>
Hands out text chunks to a XspfReader. This enables parsing from non-linear input structures. It can also be used to parse bug XSPF files in smaller chunks to lower memory usage.
Definition at line 63 of file XspfChunkCallback.h.
◆ XspfChunkCallback() [1/2]
Creates a new chunk callback.
◆ XspfChunkCallback() [2/2]
Copy constructor.
- Parameters
-
source | Source to copy from |
◆ ~XspfChunkCallback()
Destroys this chunk callback.
◆ fillBuffer()
virtual int fillBuffer |
( |
void * |
buffer | ) |
|
|
protectedpure virtual |
Fulls buffer
with a new chunk of input. the chunk copies must not exceed the number of bytes returned by the last call to getMinimumBufferByteSize. NOTE: You do not have to zero-terminate the string written. If you do so do not count this into the return value.
- Parameters
-
- Returns
- Number of bytes actually written
◆ getMinimumBufferByteSize()
virtual int getMinimumBufferByteSize |
( |
| ) |
|
|
protectedpure virtual |
Returns the minimum size in bytes of the buffer handed to fillBuffer in a subsequent call.
- Returns
- Size in bytes
◆ notifyStop()
virtual void notifyStop |
( |
| ) |
|
|
protectedvirtual |
Notifies this chunk callback, that no more chunks will be needed. You can close the resource read from in here.
◆ operator=()
Assignment operator.
- Parameters
-
source | Source to copy from |
The documentation for this class was generated from the following file: