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

Function pn_data_format

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

Source from the content-addressed store, hash-verified

408
409# int pn_data_format(pn_data_t *data, char *bytes, size_t *size);
410def pn_data_format(data, size):
411 buff = bytearray(size)
412 err = lib.pn_data_format_py(data, ffi.from_buffer(buff), size)
413 if err >= 0:
414 buff = buff[:err]
415 return err, buff
416
417
418# ssize_t pn_link_recv(pn_link_t *receiver, char *bytes, size_t n);

Callers 2

formatMethod · 0.90
pn_data_format_pyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected