.borrow_stream = medop_group_borrow_stream,
};
-static ctf_fs_ds_index_entry::UP ctf_fs_ds_index_entry_create(const bt2_common::DataLen offset,
- const bt2_common::DataLen packetSize)
-{
- ctf_fs_ds_index_entry::UP entry =
- bt2_common::makeUnique<ctf_fs_ds_index_entry>(offset, packetSize);
-
- return entry;
-}
-
static int convert_cycles_to_ns(struct ctf_clock_class *clock_class, uint64_t cycles, int64_t *ns)
{
return bt_util_clock_cycles_to_ns_from_origin(cycles, clock_class->frequency,
return nullptr;
}
- index_entry = ctf_fs_ds_index_entry_create(offset, packetSize);
+ index_entry = bt2_common::makeUnique<ctf_fs_ds_index_entry>(offset, packetSize);
if (!index_entry) {
BT_CLOGE_APPEND_CAUSE("Failed to create a ctf_fs_ds_index_entry.");
return nullptr;
return nullptr;
}
- index_entry = ctf_fs_ds_index_entry_create(currentPacketOffset, currentPacketSize);
+ index_entry =
+ bt2_common::makeUnique<ctf_fs_ds_index_entry>(currentPacketOffset, currentPacketSize);
if (!index_entry) {
BT_CLOGE_APPEND_CAUSE("Failed to create a ctf_fs_ds_index_entry.");
return nullptr;