summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2016-02-11 15:51:34 +0100
committerMagnus Ahltorp <map@kth.se>2016-02-11 15:51:34 +0100
commit8aceb5180ce1cecf4bef88543fd5d13b618bfd98 (patch)
treebe19c233f00bd9cd859e2858d3bd223b44dc0c7e /test
parentbd625d9a41332bfcc8b93a0056773124bff737d3 (diff)
Added rudimentary support for chunks.
This means that the implementation should be compatible with the specification.
Diffstat (limited to 'test')
-rwxr-xr-xtest/listpermdb.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/listpermdb.erl b/test/listpermdb.erl
index 04acbfa..a12e5e4 100755
--- a/test/listpermdb.erl
+++ b/test/listpermdb.erl
@@ -101,7 +101,7 @@ printindex(<<Unknown:16/binary, _Rest/binary>>, FileOffset) ->
printdata(<<>>, FileOffset) ->
{ok, FileOffset};
-printdata(<<?DATA_ENTRY_COOKIE:64, Key:32/binary, Length:32, Rest/binary>>, FileOffset) ->
+printdata(<<?DATA_ENTRY_COOKIE:64, Key:32/binary, 1:16, Length:16, Rest/binary>>, FileOffset) ->
FileOffset2 = FileOffset + 8 + 32 + 4,
io:format("data ~p key ~p length ~p~n", [FileOffset, Key, Length]),
<<Data:Length/binary, Rest2/binary>> = Rest,