projects
/
barectf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa29ad6
)
Fix: config.py: implement _ArrayFieldType.size_is_dynamic()
author
Philippe Proulx
<eeppeliteloop@gmail.com>
Wed, 9 Sep 2020 14:15:25 +0000
(10:15 -0400)
committer
Philippe Proulx
<eeppeliteloop@gmail.com>
Wed, 9 Sep 2020 14:15:25 +0000
(10:15 -0400)
An array field type's size is dynamic if its element field type is.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/config.py
patch
|
blob
|
blame
|
history
diff --git
a/barectf/config.py
b/barectf/config.py
index fbef355747568c3b3dd1d97a82575b7180e70a49..fdd1b4461b1e2a2cbfb13351201543cace0642a7 100644
(file)
--- a/
barectf/config.py
+++ b/
barectf/config.py
@@
-206,6
+206,10
@@
class _ArrayFieldType(_FieldType):
def alignment(self) -> Alignment:
return self._element_field_type.alignment
+ @property
+ def size_is_dynamic(self):
+ return self._element_field_type.size_is_dynamic
+
class StaticArrayFieldType(_ArrayFieldType):
def __init__(self, length: Count, element_field_type: _FieldType):
This page took
0.024667 seconds
and
4
git commands to generate.