projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src.ctf.fs: use DataLen in ctf_fs_ds_index_entry
[babeltrace.git]
/
src
/
plugins
/
ctf
/
fs-src
/
fs.hpp
diff --git
a/src/plugins/ctf/fs-src/fs.hpp
b/src/plugins/ctf/fs-src/fs.hpp
index 7aa4568e0a5a9f8fdaa21462e8f9e09ae9ffd6bd..4446524c64728af2f5707c8209a3cfb21d9be498 100644
(file)
--- a/
src/plugins/ctf/fs-src/fs.hpp
+++ b/
src/plugins/ctf/fs-src/fs.hpp
@@
-14,6
+14,7
@@
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+#include "cpp-common/bt2c/data-len.hpp"
#include "cpp-common/bt2c/glib-up.hpp"
#include "cpp-common/bt2c/logging.hpp"
#include "cpp-common/bt2c/glib-up.hpp"
#include "cpp-common/bt2c/logging.hpp"
@@
-109,14
+110,21
@@
struct ctf_fs_trace
struct ctf_fs_ds_index_entry
{
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;
/* 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'
/*
* Extracted from the packet context, relative to the respective fields'
This page took
0.026414 seconds
and
4
git commands to generate.