Function

SysprofCaptureReadernew_from_fd

Declaration [src]

SysprofCaptureReader*
sysprof_capture_reader_new_from_fd (
  int fd
)

Description [src]

Creates a new reader using the file-descriptor.

This is useful if you don’t necessarily have access to the filename itself.

If this function fails, errno is set.

This function is not directly available to language bindings.

Parameters

fd

Type: int

An fd to take ownership from.

Return value

Type: SysprofCaptureReader

An SysprofCaptureReader or NULL upon failure.

The caller of the function takes ownership of the data, and is responsible for freeing it.