def _read_dir(fid):
    return dict(offset=np.fromfile(fid, np.uint32, 1)[0], size=np.fromfile(fid, np.int32, 1)[0], max_count=np.fromfile(fid, np.int32, 1)[0], count=np.fromfile(fid, np.int32, 1)[0])
def _read_dir(fid):
    return dict(offset=np.fromfile(fid, np.uint32, 1)[0], size=np.fromfile(fid, np.int32, 1)[0], max_count=np.fromfile(fid, np.int32, 1)[0], count=np.fromfile(fid, np.int32, 1)[0])