CustomDataStruct

class pyds.CustomDataStruct

持有自定义结构体数据。

变量:
  • structIdint, 此结构体的 ID。

  • messagestr, 嵌入在此结构体中的消息。

  • sampleIntint, 示例 int 数据

cast(self: capsule) pyds.CustomDataStruct

将给定的对象/数据转换为 CustomDataStruct, 调用 pyds.CustomDataStruct.cast(data)