def METHOD_NAME(f, fileSize):
    nBytes = fileSize - f.tell()
    if nBytes <= 0:
        return True
    table = f.read(nBytes)
    WriterCount = 0
    pos = 0
    step = 0
    while pos < nBytes:
        print("-----------------------------------------------" +
              "---------------------------------------------------")
        record = chr(table[pos])
        pos = pos + 1
        reclen = np.frombuffer(table, dtype=np.uint64, count=1,
                               offset=pos)
        pos = pos + 8
        print("Record '{0}', length = {1}".format(record, reclen))
        if record == 's':
            # print("Step record, length = {0}".format(reclen))
            data = np.frombuffer(table, dtype=np.uint64, count=3,
                                 offset=pos)
            stepstr = str(step).ljust(6)
            mdatapos = str(data[0]).ljust(10)
            mdatasize = str(data[1]).ljust(10)
            flushcount = str(data[2]).ljust(3)
            FlushCount = data[2]
            print("|   Step = " + stepstr + "| MetadataPos = " + mdatapos +
                  " |  MetadataSize = " + mdatasize + "   | FlushCount = " +
                  flushcount + "|")
            pos = pos + 3 * 8
            for Writer in range(0, WriterCount):
                start = " Writer " + str(Writer) + " data "
                thiswriter = np.frombuffer(table, dtype=np.uint64,
                                           count=int(FlushCount * 2 + 1),
                                           offset=pos)
                for i in range(0, FlushCount):  # for flushes
                    start += ("loc:" + str(thiswriter[int(i * 2)]) + " siz:" +
                              str(thiswriter[i * 2 + 1]) + "; ")
                start += "loc:" + str(thiswriter[int(FlushCount * 2)])
                pos = int(pos + (FlushCount * 2 + 1) * 8)
                print(start)
            step = step + 1
        elif record == 'w':
            # print("WriterMap record")
            pos, WriterCount, AggregatorCount, SubfileCount = ReadWriterMap(
                table, pos)
        elif record == 'm':
            print("MetaMeta record")
        else:
            print("Unknown record {0}, lenght = {1}".format(record, reclen))
        print("---------------------------------------------------" +
              "-----------------------------------------------")
    if fileSize - f.tell() > 1:
        print("ERROR: There are {0} bytes at the end of file"
              " that cannot be interpreted".format(fileSize - f.tell() - 1))
        return False
    return True