def payload_str(self): s = ffi.new('char *[1]') if self.pimpl.has_payload(): self.pimpl.get_json(ffi.cast('char**', s)) return ffi.string(s[0]) else: return None
def payload_str(self): s = ffi.new('char *[1]') if self.pimpl.has_payload(): self.pimpl.get_payload_json(ffi.cast('char**', s)) return ffi.string(s[0]) else: return None
def payload_str(self): string = ffi.new("char *[1]") if self.pimpl.has_payload(): self.pimpl.get_string(ffi.cast("char**", string)) return ffi.string(string[0]).decode("utf-8") return None