#include <babeltrace2/babeltrace.h>
+#include "cpp-common/bt2c/data-len.hpp"
#include "cpp-common/bt2c/glib-up.hpp"
#include "cpp-common/bt2c/logging.hpp"
struct ctf_fs_ds_index_entry
{
+ explicit ctf_fs_ds_index_entry(const bt2c::DataLen offsetParam,
+ const bt2c::DataLen packetSizeParam) noexcept :
+ offset(offsetParam),
+ packetSize(packetSizeParam)
+ {
+ }
+
/* Weak, belongs to ctf_fs_ds_file_info. */
const char *path = nullptr;
- /* Position, in bytes, of the packet from the beginning of the file. */
- uint64_t offset = 0;
+ /* Position of the packet from the beginning of the file. */
+ bt2c::DataLen offset;
- /* Size of the packet, in bytes. */
- uint64_t packet_size = 0;
+ /* Size of the packet. */
+ bt2c::DataLen packetSize;
/*
* Extracted from the packet context, relative to the respective fields'