endurox.tpimport¶
- endurox.tpimport(istr: str, flags: int = 0) object ¶
Import previously exported ATMI buffer. If it was exported with
TPEX_STRING
flag, then this function shall be invoked with this flag too.tpimport example¶import endurox as e buf_exp = e.tpexport({"data":"HELLO WORLD"}, e.TPEX_STRING) buf_org = e.tpimport(buf_exp, e.TPEX_STRING)
For more details see tpimport(3) C API call.
- Raises:
AtmiException –
- Parameters:
istr (str) – Serialized buffer with
tpexport()
flags (int) – Bitwise flags, may contain
TPEX_STRING
,TPEX_NOCHANGE
. Default is 0.
- Returns:
buf – Restored ATMI buffer.
- Return type: