Method
SysprofCaptureWritercreate_reader
Declaration [src]
SysprofCaptureReader*
sysprof_capture_writer_create_reader (
SysprofCaptureWriter* self
)
Description [src]
Creates a new reader for the writer.
Since readers use positioned reads, this uses the same file-descriptor for the SysprofCaptureReader. Therefore, if you are writing to the capture while
also consuming from the reader, you could get transient failures unless you
synchronize the operations.
errno is set on error, to any of the errors returned by sysprof_capture_writer_flush(), dup() or sysprof_capture_reader_new_from_fd().
This method is not directly available to language bindings.
Return value
Type: SysprofCaptureReader
A SysprofCaptureReader.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |