Exemplo n.º 1
0
class Integer(IdlStruct):
    seq: int
    keyval: int
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "integer"
Exemplo n.º 2
0
class IntSequence(IdlStruct):
    seq: int
    keyval: sequence[int]
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "int_sequence"
Exemplo n.º 3
0
class String(IdlStruct):
    seq: int
    keyval: str
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "string"
Exemplo n.º 4
0
class StrSequence(IdlStruct):
    seq: int
    keyval: sequence[str, 100]  # max 100 string elements
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "str_sequence"
Exemplo n.º 5
0
class StrArray(IdlStruct):
    seq: int
    keyval: array[str, 5]
    key("seq")
    key("keyval")

    @staticmethod
    def size():
        return 5

    @classmethod
    def postfix(cls):
        return "str_array"
Exemplo n.º 6
0
class IntArray(IdlStruct):
    seq: int
    keyval: array[int, 3]
    key("seq")
    key("keyval")

    @staticmethod
    def size():
        return 3

    @classmethod
    def postfix(cls):
        return "int_array"
Exemplo n.º 7
0
class SingleEnum(IdlStruct):
    value: BasicEnum
    key("value")
Exemplo n.º 8
0
class SingleBool(IdlStruct):
    value: bool
    key("value")
Exemplo n.º 9
0
class SingleFloat(IdlStruct):
    value: float
    key("value")
Exemplo n.º 10
0
class SingleInt(IdlStruct):
    value: int
    key("value")
class XStruct(IdlStruct):
    A: XUnion
    k: int
    key('k')
Exemplo n.º 12
0
class SingleString(IdlStruct):
    value: str
    key("value")
Exemplo n.º 13
0
class Keyed2(IdlStruct):
    a: int
    key("a")
    b: int
Exemplo n.º 14
0
class SingleSequence(IdlStruct):
    value: pt.sequence[int]
    key("value")
Exemplo n.º 15
0
class SingleBoundedString(IdlStruct):
    value: pt.bounded_str[10]
    key("value")
Exemplo n.º 16
0
class SingleBoundedSequence(IdlStruct):
    value: pt.sequence[int, 3]
    key("value")
Exemplo n.º 17
0
class SingleUint16(IdlStruct):
    value: pt.uint16
    key("value")
Exemplo n.º 18
0
class SingleArray(IdlStruct):
    value: pt.array[pt.uint16, 3]
    key("value")
Exemplo n.º 19
0
class SingleNested(IdlStruct):
    value: SingleInt
    key("value")
Exemplo n.º 20
0
class SingleUnion(IdlStruct):
    value: EasyUnion
    key("value")