当前位置: 首页>>代码示例>>Python>>正文


Python pycffi_marshal.CPyRecord类代码示例

本文整理汇总了Python中djinni.pycffi_marshal.CPyRecord的典型用法代码示例。如果您正苦于以下问题:Python CPyRecord类的具体用法?Python CPyRecord怎么用?Python CPyRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CPyRecord类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: python_create_foo_client_returned_record

 def python_create_foo_client_returned_record(record_id, content, some_record):
     py_rec = FooClientReturnedRecord(
         CPyPrimitive.toPy(record_id),
         CPyString.toPy(content),
         CPyRecord.toPy(FooSomeOtherRecord.c_data_set, some_record),
     )
     return CPyRecord.fromPy(FooClientReturnedRecord.c_data_set, py_rec)  # to do: can be optional?
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:foo_client_returned_record_helper.py

示例2: get_foo_client_returned_record_f3

 def get_foo_client_returned_record_f3(cself):
     try:
         _ret = CPyRecord.fromPy(FooSomeOtherRecord.c_data_set, CPyRecord.toPy(None, cself).some_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:foo_client_returned_record_helper.py

示例3: get_record_with_nested_derivings_f2

 def get_record_with_nested_derivings_f2(cself):
     try:
         _ret = CPyRecord.fromPy(RecordWithDerivings.c_data_set, CPyRecord.toPy(None, cself).rec)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:record_with_nested_derivings_helper.py

示例4: get_record_with_derivings_f1

 def get_record_with_derivings_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).key1)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:record_with_derivings_helper.py

示例5: get_client_returned_record_f3

 def get_client_returned_record_f3(cself):
     try:
         with CPyString.fromPyOpt(CPyRecord.toPy(None, cself).misc) as py_obj:
             return py_obj.release_djinni_string()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:client_returned_record_helper.py

示例6: get_foo_extensible_record_f1

 def get_foo_extensible_record_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number1)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:foo_extensible_record_helper.py

示例7: get_foo_client_returned_record_f1

 def get_foo_client_returned_record_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).record_id)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:foo_client_returned_record_helper.py

示例8: get_assorted_primitives_f9

 def get_assorted_primitives_f9(cself):
     try:
         with CPyBoxedI8.fromPyOpt(CPyRecord.toPy(None, cself).o_eight) as py_obj:
             return py_obj.release_djinni_boxed()
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:assorted_primitives_helper.py

示例9: get_foo_constants_f1

 def get_foo_constants_f1(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).some_integer)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:foo_constants_helper.py

示例10: get_assorted_primitives_f7

 def get_assorted_primitives_f7(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).fsixtyfour)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:assorted_primitives_helper.py

示例11: get_some_const_record_f2

 def get_some_const_record_f2(cself):
     try:
         _ret = CPyPrimitive.fromPy(CPyRecord.toPy(None, cself).number2)
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:7,代码来源:some_const_record_helper.py

示例12: get_nested_collection_f1

 def get_nested_collection_f1(cself):
     try:
         _ret = CPyObject.fromPy(ListSetStringHelper.c_data_set, CPyRecord.toPy(None, cself).set_list)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:nested_collection_helper.py

示例13: get_foo_containers_record_f6

 def get_foo_containers_record_f6(cself):
     try:
         _ret = CPyObject.fromPy(ListRecordFooSomeOtherRecordHelper.c_data_set, CPyRecord.toPy(None, cself).list_record)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:foo_containers_record_helper.py

示例14: get_foo_containers_record_f5

 def get_foo_containers_record_f5(cself):
     try:
         _ret = CPyObject.fromPy(ListListStringHelper.c_data_set, CPyRecord.toPy(None, cself).list_list_string)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:foo_containers_record_helper.py

示例15: get_foo_containers_record_f4

 def get_foo_containers_record_f4(cself):
     try:
         _ret = CPyObject.fromPy(ListOptionalBinaryHelper.c_data_set, CPyRecord.toPy(None, cself).list_optional_binary)
         assert _ret != ffi.NULL
         return _ret
     except Exception as _djinni_py_e:
         CPyException.setExceptionFromPy(_djinni_py_e)
         return ffi.NULL
开发者ID:trafi,项目名称:djinni,代码行数:8,代码来源:foo_containers_record_helper.py


注:本文中的djinni.pycffi_marshal.CPyRecord类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。