]> granicus.if.org Git - file/commitdiff
PR/396: Add more magic from the supplied file in the PR (Jan Kaluza)
authorChristos Zoulas <christos@zoulas.com>
Thu, 5 Feb 2015 19:14:45 +0000 (19:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 5 Feb 2015 19:14:45 +0000 (19:14 +0000)
magic/Magdir/sereal

index 606a47c0e643910fe6af6478940e83161efc9e67..b7c2e26447e8394238c8ad98219022e0f89869e5 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: sereal,v 1.1 2014/05/14 23:04:59 christos Exp $
+# $File: sereal,v 1.2 2014/11/11 20:10:49 christos Exp $
 # sereal: file(1) magic the Sereal binary serialization format
 #
 # From: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
 #
 # 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
+