datatypes: do not arbitrarily restrict maxlen of arrays/blobs to 2**16

Change-Id: Ic03ff05240c7caa22ae5adf555f871d09612eecd
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/37837
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Georg Brandl <g.brandl@fz-juelich.de>
This commit is contained in:
Georg Brandl
2025-11-12 10:52:15 +01:00
committed by Markus Zolliker
parent 66f0e64b2e
commit cf220382b9

View File

@@ -557,9 +557,9 @@ class BLOBType(DataType):
internally treated as bytes
"""
minbytes = Property('minimum number of bytes', IntRange(0), extname='minbytes',
minbytes = Property('minimum number of bytes', IntRange(0, UNLIMITED), extname='minbytes',
default=0)
maxbytes = Property('maximum number of bytes', IntRange(0), extname='maxbytes',
maxbytes = Property('maximum number of bytes', IntRange(0, UNLIMITED), extname='maxbytes',
mandatory=True)
def __init__(self, minbytes=0, maxbytes=None):
@@ -755,9 +755,9 @@ class ArrayOf(DataType):
:param members: the datatype of the elements
"""
minlen = Property('minimum number of elements', IntRange(0), extname='minlen',
minlen = Property('minimum number of elements', IntRange(0, UNLIMITED), extname='minlen',
default=0)
maxlen = Property('maximum number of elements', IntRange(0), extname='maxlen',
maxlen = Property('maximum number of elements', IntRange(0, UNLIMITED), extname='maxlen',
mandatory=True)
def __init__(self, members, minlen=0, maxlen=None):