def read_data(file, endian, num=<NUM_LIT:1>):
res = struct.unpack(endian + '<STR_LIT:L>' * num, file.read(num * <NUM_LIT:4>))<EOL>if len(res) == <NUM_LIT:1>:<EOL><INDENT>return res[<NUM_LIT:0>]<EOL><DEDENT>return res<EOL>
Read a given number of 32-bits unsigned integers from the given file
with the given endianness.