def id_binary(b): with CPyBinary.fromPy(b) as pybin_b: _ret_c = lib.cw__test_helpers_id_binary(pybin_b.release_djinni_binary()) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyBinary.toPy(_ret_c) assert _ret is not None return _ret
def id_binary(b): with CPyBinary.fromPy(b) as pybin_b: _ret_c = lib.cw__test_helpers_id_binary( pybin_b.release_djinni_binary()) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyBinary.toPy(_ret_c) assert _ret is not None return _ret
def cause_changes_int_optional_returned(self, i, f, s, binar, b, d): with CPyBoxedI32.fromPyOpt(i) as pyopt_i,\ CPyString.fromPyOpt(s) as pyopt_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_optional_returned(self._cpp_impl, pyopt_i.release_djinni_boxed(), CPyPrimitive.fromPy(f), pyopt_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyBoxedI32.toPyOpt(_ret_c) return _ret
def cause_changes_int_returned(self, i, f, s, binar, b, d): with CPyString.fromPy(s) as pys_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_returned(self._cpp_impl, CPyPrimitive.fromPy(i), CPyPrimitive.fromPy(f), pys_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def get_my_record_f8(cself): try: with CPyBinary.fromPy(CPyRecord.toPy(None, cself).test5) as py_obj: _ret = py_obj.release_djinni_binary() assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def on_changes_binary_returned(cself, i, f, s, binar, b, d): try: with CPyBinary.fromPy(FooListenerHelper.selfToPy(cself).on_changes_binary_returned(CPyPrimitive.toPy(i), CPyPrimitive.toPy(f), CPyString.toPy(s), CPyBinary.toPy(binar), CPyPrimitive.toPy(b), CPyDate.toPy(d))) as py_obj: _ret = py_obj.release_djinni_binary() assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_binary(cself): try: with CPyBinary.fromPy(FooListenerBfHelper.selfToPy(cself).get_binary()) as py_obj: _ret = py_obj.release_djinni_binary() assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def __get_elem(cself, index): try: with CPyBinary.fromPy(CPyObject.toPy(None, cself)[index]) as py_obj: _ret = py_obj.release_djinni_binary() assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def get_all_datatypes_f9(cself): try: with CPyBinary.fromPy(CPyRecord.toPy(None, cself).binaryData) as py_obj: _ret = py_obj.release_djinni_binary() assert _ret != ffi.NULL return _ret except Exception as _djinni_py_e: CPyException.setExceptionFromPy(_djinni_py_e) return ffi.NULL
def cause_changes_int_optional_returned(self, i, f, s, binar, b, d): with CPyBoxedI32.fromPyOpt(i) as pyopt_i,\ CPyString.fromPyOpt(s) as pyopt_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_optional_returned( self._cpp_impl, pyopt_i.release_djinni_boxed(), CPyPrimitive.fromPy(f), pyopt_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyBoxedI32.toPyOpt(_ret_c) return _ret
def cause_changes_int_returned(self, i, f, s, binar, b, d): with CPyString.fromPy(s) as pys_s,\ CPyBinary.fromPy(binar) as pybin_binar: _ret_c = lib.cw__foo_receiver_cause_changes_int_returned( self._cpp_impl, CPyPrimitive.fromPy(i), CPyPrimitive.fromPy(f), pys_s.release_djinni_string(), pybin_binar.release_djinni_binary(), CPyPrimitive.fromPy(b), CPyDate.fromPy(d)) CPyException.toPyCheckAndRaise(_ret_c) _ret = CPyPrimitive.toPy(_ret_c) assert _ret is not None return _ret
def set_binary(self, private_binary): with CPyBinary.fromPy(private_binary) as pybin_private_binary: lib.cw__foo_primitives_set_binary(self._cpp_impl, pybin_private_binary.release_djinni_binary()) CPyException.toPyCheckAndRaise(ffi.NULL)
def set_binary_in_listener_bf_in_listener_bf(self, b): with CPyBinary.fromPy(b) as pybin_b: lib.cw__foo_receiver_set_binary_in_listener_bf_in_listener_bf( self._cpp_impl, pybin_b.release_djinni_binary()) CPyException.toPyCheckAndRaise(ffi.NULL)
def set_binary(self, b): with CPyBinary.fromPy(b) as pybin_b: lib.cw__foo_listener_bf_set_binary(self._cpp_impl, pybin_b.release_djinni_binary()) CPyException.toPyCheckAndRaise(ffi.NULL)