obspy.io.y.core._unpack_with_asciiz_and_decode
- _unpack_with_asciiz_and_decode(fmt, data)[source]
Unpack binary data and decode ASCII bytestrings, stripping ASCIIZ bytestrings correctly as specified by Y format definition. In addition to format flags defined by
struct.unpack()
, “z” can be used to denote ASCIIZ fields.- Parameters:
fmt – see
struct.unpack()
data – see
struct.unpack()
- Returns:
see
struct.unpack()
but with bytestrings being decoded