def _readbin(fid, fmt='<STR_LIT:i>', nwords=<NUM_LIT:1>, file64=False, unpack=True):
if fmt in '<STR_LIT>':<EOL><INDENT>fmt += '<STR_LIT>' if file64 else '<STR_LIT:4>'<EOL><DEDENT>elts = np.fromfile(fid, fmt, nwords)<EOL>if unpack and len(elts) == <NUM_LIT:1>:<EOL><INDENT>elts = elts[<NUM_LIT:0>]<EOL><DEDENT>return elts<EOL>
Read n words of 4 or 8 bytes with fmt format.

    fmt: 'i' or 'f' or 'b' (integer or float or bytes)
    4 or 8 bytes: depends on header

    Return an array of elements if more than one element.

    Default: read 1 word formatted as an integer.