MCPcopy Create free account
hub / github.com/apache/qpid-proton / pn_data_encode

Function pn_data_encode

python/cproton.py:401–406  ·  view source on GitHub ↗
(data, size)

Source from the content-addressed store, hash-verified

399
400# ssize_t pn_data_encode(pn_data_t *data, char *bytes, size_t size);
401def pn_data_encode(data, size):
402 buff = bytearray(size)
403 err = lib.pn_data_encode(data, ffi.from_buffer(buff), size)
404 if err >= 0:
405 buff = buff[:err]
406 return err, buff
407
408
409# int pn_data_format(pn_data_t *data, char *bytes, size_t *size);

Callers 1

encodeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected