xref: /freebsd/contrib/file/magic/Magdir/cbor (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
15f0216bdSXin LI
25f0216bdSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: cbor,v 1.2 2024/09/04 19:06:12 christos Exp $
45f0216bdSXin LI# cbor:  file(1) magic for CBOR files as defined in RFC 7049
55f0216bdSXin LI
65f0216bdSXin LI0	string	\xd9\xd9\xf7 Concise Binary Object Representation (CBOR) container
75f0216bdSXin LI!:mime	application/cbor
85f0216bdSXin LI>3	ubyte	<0x20	(positive integer)
95f0216bdSXin LI>3	ubyte	<0x40
105f0216bdSXin LI>>3	ubyte	>0x1f	(negative integer)
115f0216bdSXin LI>3	ubyte	<0x60
125f0216bdSXin LI>>3	ubyte	>0x3f	(byte string)
135f0216bdSXin LI>3	ubyte	<0x80
145f0216bdSXin LI>>3	ubyte	>0x5f	(text string)
155f0216bdSXin LI>3	ubyte	<0xa0
16*ae316d1dSXin LI>>3	ubyte	>0x7f	(array)
175f0216bdSXin LI>3	ubyte	<0xc0
185f0216bdSXin LI>>3	ubyte	>0x9f	(map)
195f0216bdSXin LI>3	ubyte	<0xe0
205f0216bdSXin LI>>3	ubyte	>0xbf	(tagged)
215f0216bdSXin LI>3	ubyte	>0xdf	(other)
22