diff options
author | Xin LI <delphij@FreeBSD.org> | 2015-06-10 19:06:05 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2015-06-10 19:06:05 +0000 |
commit | 76c08169d47becb14ee96abce87cb4167fd159f9 (patch) | |
tree | 683691b945591f3b3198540865fd167c1cc12a2f /magic/Magdir/sereal | |
parent | 7e650197bfa22668160695ec55b6ed3e3da63f43 (diff) |
Notes
Diffstat (limited to 'magic/Magdir/sereal')
-rw-r--r-- | magic/Magdir/sereal | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/magic/Magdir/sereal b/magic/Magdir/sereal index 7fa4503f98cf0..ead78d5d35663 100644 --- a/magic/Magdir/sereal +++ b/magic/Magdir/sereal @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: sereal,v 1.2 2014/11/11 20:10:49 christos Exp $ +# $File: sereal,v 1.3 2015/02/05 19:14:45 christos Exp $ # sereal: file(1) magic the Sereal binary serialization format # # From: Ævar Arnfjörð Bjarmason <avarab@gmail.com> @@ -16,10 +16,20 @@ # # See https://github.com/Sereal/Sereal/commit/35372ae01d in the # Sereal.git repository for test Sereal data. -0 string \=srl Sereal data +0 name sereal +>4 byte&0x0F x (version %d, +>4 byte&0xF0 0x00 uncompressed) +>4 byte&0xF0 0x10 compressed with non-incremental Snappy) +>4 byte&0xF0 0x20 compressed with incremental Snappy) +>4 byte&0xF0 >0x20 unknown subformat, flag: %d>>4) + +0 string/b \=srl Sereal data packet +!:mime application/sereal +>&0 use sereal +0 string/b \=\xF3rl Sereal data packet !:mime application/sereal ->4 byte&0x0F x (version %d, ->4 byte&0xF0 0x00 uncompressed) ->4 byte&0xF0 0x10 compressed with non-incremental Snappy) ->4 byte&0xF0 0x20 compressed with incremental Snappy) ->4 byte&0xF0 >0x20 unknown subformat, flag: %d>>4) +>&0 use sereal +0 string/b \=\xC3\xB3rl Sereal data packet, UTF-8 encoded +!:mime application/sereal +>&0 use sereal + |