endurox.Bextread

endurox.Bextread(iop: object) object

Restore ATMI UBF buffer from Bfprint() output.

For more details see Bextread(3) C API call.

Raises:

UbfException

Following error codes may be present:
BALIGNERR - Corrupted output buffer (internal error).
BNOTFLD - Corrupted output buffer (internal error).
BEINVAL - Invalid input file.
BSYNTAX - Input file syntax error.
BBADNAME - Field not found in UBF field tables.
BBADVIEW - View not found.

Parameters:

iop (file) – Input stream in read mode.

Returns:

ret – Restored UBF buffer.

Return type:

dict