diff options
author | Magnus Ahltorp <map@kth.se> | 2016-02-11 15:51:34 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2016-04-25 13:14:11 +0200 |
commit | 027f53e35bc57e0046bbb3c02f74e8504961b499 (patch) | |
tree | c51882957b0d206ec72f6271b7dd1d2853a5703b /test/listpermdb.erl | |
parent | ac36edf0168b9b783e118812f3192b5b4f4d4505 (diff) |
Added rudimentary support for chunks.
This means that the implementation should be compatible with the specification.
Diffstat (limited to 'test/listpermdb.erl')
-rwxr-xr-x | test/listpermdb.erl | 2 |
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, |