Typedef rdf4cpp::writer::FlushFunc

Typedef Documentation

using rdf4cpp::writer::FlushFunc = void (*)(void *buffer, char **write_area, size_t *write_area_size, size_t additional_cap)

Flushes user defined data. The function’s task is it to somehow make room in buffer and point the cursor and remaining_size to this new, free space.

Note

must not throw exceptions, but is not marked noexcept so that C functions can be easily used

Param buffer:

buffer to make room in

Param write_area:

a pointer to the start of the free space, must be repointed to the start of the new free space

Param write_area_size:

the remaining size of the free space, must be set to the size of the new free space

Param additional_cap:

how much additional space is needed right now