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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user