obspy.io.rg16.util._read

_read(fi, position, length, dtype, left_part=True)[source]

Read one or more bytes using provided datatype.

Parameters:
  • fi A buffer containing the bytes to read.
  • position (int) Byte position to start reading.
  • length (int or float) Length, in bytes, of data to read.
  • dtype (str) bcd, binary or IEEE
  • left_part (bool) If True, start the reading from the first half part of the byte position. If False, start the reading from the second half part of the byte position.