]> granicus.if.org Git - file/commitdiff
add tokyo cabinet from: Sven Hartrumpf <Sven.Hartrumpf@FernUni-Hagen.de>
authorChristos Zoulas <christos@zoulas.com>
Tue, 14 Apr 2009 16:27:16 +0000 (16:27 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 14 Apr 2009 16:27:16 +0000 (16:27 +0000)
magic/Magdir/database

index 2e6ad2fdd2c8f3d2e7017a0ad5749c38285e1b64..0134355f38163a78cd28f423506aaf5e81d347c3 100644 (file)
 # URL:  http://www.grc.nasa.gov/WWW/cgns/adf/
 # From: Nicolas Chauvat <nicolas.chauvat@logilab.fr>
 0      string  @(#)ADF\ Database       CGNS Advanced Data Format
+
+# Tokyo Cabinet magic data
+# http://tokyocabinet.sourceforge.net/index.html
+0      string          ToKyO\ CaBiNeT\n        Tokyo Cabinet
+>14    string          x                       \b (%s)
+>32    byte            0                       \b, Hash
+!:mime application/x-tokyocabinet-hash
+>32    byte            1                       \b, B+ tree
+!:mime application/x-tokyocabinet-btree
+>32    byte            2                       \b, Fixed-length
+!:mime application/x-tokyocabinet-fixed
+>32    byte            3                       \b, Table
+!:mime application/x-tokyocabinet-table
+>33    byte            &1                      \b, [open]
+>33    byte            &2                      \b, [fatal]
+>34    byte            x                       \b, apow=%d
+>35    byte            x                       \b, fpow=%d
+>36    byte            &0x01                   \b, [large]
+>36    byte            &0x02                   \b, [deflate]
+>36    byte            &0x04                   \b, [bzip]
+>36    byte            &0x08                   \b, [tcbs]
+>36    byte            &0x10                   \b, [excodec]
+>40    lequad          x                       \b, bnum=%lld
+>48    lequad          x                       \b, rnum=%lld
+>56    lequad          x                       \b, fsiz=%lld