libsysprof-capture: add byte-order helper

This isn't needed for reading captures, but can be helpful when dealing
with embedded data such as file frames.
This commit is contained in:
Christian Hergert
2019-05-28 15:45:38 -07:00
parent 3b3011544b
commit ffda366809
2 changed files with 10 additions and 0 deletions

View File

@ -1277,3 +1277,11 @@ sysprof_capture_reader_read_file_fd (SysprofCaptureReader *self,
g_return_val_if_reached (FALSE);
}
gint
sysprof_capture_reader_get_byte_order (SysprofCaptureReader *self)
{
g_return_val_if_fail (self != NULL, 0);
return self->endian;
}