The CTF specifications use "size" rather than "length"
for an integer type, and on the Python side,
babeltrace.writer.IntegerFieldDeclaration.size is used.
babeltrace.reader.IntegerFieldDeclaration.length is
kept here for backward compatibility reasons.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
return common.ByteOrder.BYTE_ORDER_UNKNOWN
@property
- def length(self):
+ def size(self):
"""
Integer size in bits, or a negative value on error.
"""
-
return nbt._bt_ctf_get_int_len(self._fd)
+ @property
+ def length(self):
+ return self.size
+
@property
def encoding(self):
"""