Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Feb 29, 2024
1 parent c601c79 commit b77d3fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,14 @@ def ReadFileHeaderDataAlt(fp, rounds=0):
"""Read multiple null-byte terminated strings from a file."""
header_out = {}
for round_count in range(rounds):
header_out[round_count] = read_till_null_byte(fp);
header_out[round_count] = ReadTillNullByteAlt(fp);
return header_out;

def ReadFileHeaderDataByListAlt(fp, listval=[]):
"""Read multiple null-byte terminated strings from a file."""
header_out = {}
for round_count in listval:
header_out[round_count] = ReadTillNullByteAlt(fp);
return header_out;

def AppendNullByteAlt(indata):
Expand Down

0 comments on commit b77d3fd

Please sign in to comment.