コード例 #1
0
class Integer(IdlStruct):
    seq: int
    keyval: int
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "integer"
コード例 #2
0
class IntSequence(IdlStruct):
    seq: int
    keyval: sequence[int]
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "int_sequence"
コード例 #3
0
class String(IdlStruct):
    seq: int
    keyval: str
    key("seq")
    key("keyval")

    @classmethod
    def postfix(cls):
        return "string"
コード例 #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"
コード例 #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"
コード例 #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"
コード例 #7
0
class SingleEnum(IdlStruct):
    value: BasicEnum
    key("value")
コード例 #8
0
class SingleBool(IdlStruct):
    value: bool
    key("value")
コード例 #9
0
class SingleFloat(IdlStruct):
    value: float
    key("value")
コード例 #10
0
class SingleInt(IdlStruct):
    value: int
    key("value")
コード例 #11
0
class XStruct(IdlStruct):
    A: XUnion
    k: int
    key('k')
コード例 #12
0
class SingleString(IdlStruct):
    value: str
    key("value")
コード例 #13
0
class Keyed2(IdlStruct):
    a: int
    key("a")
    b: int
コード例 #14
0
class SingleSequence(IdlStruct):
    value: pt.sequence[int]
    key("value")
コード例 #15
0
class SingleBoundedString(IdlStruct):
    value: pt.bounded_str[10]
    key("value")
コード例 #16
0
class SingleBoundedSequence(IdlStruct):
    value: pt.sequence[int, 3]
    key("value")
コード例 #17
0
class SingleUint16(IdlStruct):
    value: pt.uint16
    key("value")
コード例 #18
0
class SingleArray(IdlStruct):
    value: pt.array[pt.uint16, 3]
    key("value")
コード例 #19
0
class SingleNested(IdlStruct):
    value: SingleInt
    key("value")
コード例 #20
0
class SingleUnion(IdlStruct):
    value: EasyUnion
    key("value")