Skip to content

Commit

Permalink
header fields: rest for the last 12 bytes of the block (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored May 4, 2021
1 parent 7b4c99a commit f06ba79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/extract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ const HEADER_FIELDS = [
(:devmajor, 329, 8)
(:devminor, 337, 8)
(:prefix, 345, 155)
(:rest, 500, 12)
]

index_range(offset::Int, length::Int) = offset .+ (1:length)
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ end
data_buffer = data
end :: Nothing
end
@test join(map(last, data_pairs)) == String(data_buffer[1:500])
@test join(map(last, data_pairs)) == String(data_buffer)
end

# add a sketchy entry to tarball
Expand Down

0 comments on commit f06ba79

Please sign in to comment.