summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2016-02-11 15:51:34 +0100
committerLinus Nordberg <linus@nordu.net>2016-04-25 13:14:11 +0200
commit027f53e35bc57e0046bbb3c02f74e8504961b499 (patch)
treec51882957b0d206ec72f6271b7dd1d2853a5703b /test
parentac36edf0168b9b783e118812f3192b5b4f4d4505 (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,