def get_assorted_primitives_f8(cself): try: with CPyBoxedBool.fromPyOpt(CPyRecord.toPy(None, cself).o_b) as py_obj: return py_obj.release_djinni_boxed() except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f14(cself): try: with CPyBoxedBool.fromPyOpt( CPyRecord.toPy(None, cself).optionalData) as py_obj: return py_obj.release_djinni_boxed() except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def python_create_assorted_primitives(b,eight,sixteen,thirtytwo,sixtyfour,fthirtytwo,fsixtyfour,o_b,o_eight,o_sixteen,o_thirtytwo,o_sixtyfour,o_fthirtytwo,o_fsixtyfour): py_rec = AssortedPrimitives( CPyPrimitive.toPy(b), CPyPrimitive.toPy(eight), CPyPrimitive.toPy(sixteen), CPyPrimitive.toPy(thirtytwo), CPyPrimitive.toPy(sixtyfour), CPyPrimitive.toPy(fthirtytwo), CPyPrimitive.toPy(fsixtyfour), CPyBoxedBool.toPyOpt(o_b), CPyBoxedI8.toPyOpt(o_eight), CPyBoxedI16.toPyOpt(o_sixteen), CPyBoxedI32.toPyOpt(o_thirtytwo), CPyBoxedI64.toPyOpt(o_sixtyfour), CPyBoxedF32.toPyOpt(o_fthirtytwo), CPyBoxedF64.toPyOpt(o_fsixtyfour)) return CPyRecord.fromPy(AssortedPrimitives.c_data_set, py_rec) #to do: can be optional?
def python_create_all_datatypes(booleanData, integer8Data, integer16Data, integer32Data, integer64Data, float32Data, float64Data, stringData, binaryData, dateData, listData, setData, mapData, optionalData): py_rec = AllDatatypes( CPyPrimitive.toPy(booleanData), CPyPrimitive.toPy(integer8Data), CPyPrimitive.toPy(integer16Data), CPyPrimitive.toPy(integer32Data), CPyPrimitive.toPy(integer64Data), CPyPrimitive.toPy(float32Data), CPyPrimitive.toPy(float64Data), CPyString.toPy(stringData), CPyBinary.toPy(binaryData), CPyDate.toPy(dateData), CPyObject.toPy(ListBoolHelper.c_data_set, listData), CPyObjectProxy.toPyObj(SetBoolHelper.c_data_set, setData), CPyObjectProxy.toPyObj(MapInt8TBoolHelper.c_data_set, mapData), CPyBoxedBool.toPyOpt(optionalData)) return CPyRecord.fromPy(AllDatatypes.c_data_set, py_rec) #to do: can be optional?