"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/cbor" (17 Mar 2017, 610 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: cbor,v 1.1 2015/01/28 01:05:21 christos Exp $
    4 # cbor:  file(1) magic for CBOR files as defined in RFC 7049
    5 
    6 0	string	\xd9\xd9\xf7 Concise Binary Object Representation (CBOR) container
    7 !:mime	application/cbor
    8 >3	ubyte	<0x20	(positive integer)
    9 >3	ubyte	<0x40
   10 >>3	ubyte	>0x1f	(negative integer)
   11 >3	ubyte	<0x60
   12 >>3	ubyte	>0x3f	(byte string)
   13 >3	ubyte	<0x80
   14 >>3	ubyte	>0x5f	(text string)
   15 >3	ubyte	<0xa0
   16 >3	ubyte	>0x7f	(array)
   17 >3	ubyte	<0xc0
   18 >>3	ubyte	>0x9f	(map)
   19 >3	ubyte	<0xe0
   20 >>3	ubyte	>0xbf	(tagged)
   21 >3	ubyte	>0xdf	(other)