9
|
1 //
|
|
2 // Copyright 2011 Kazuki Oikawa
|
|
3 //
|
|
4 // Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 // you may not use this file except in compliance with the License.
|
|
6 // You may obtain a copy of the License at
|
|
7 //
|
|
8 // http://www.apache.org/licenses/LICENSE-2.0
|
|
9 //
|
|
10 // Unless required by applicable law or agreed to in writing, software
|
|
11 // distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 // See the License for the specific language governing permissions and
|
|
14 // limitations under the License.
|
|
15 //
|
|
16
|
|
17 namespace MsgPack
|
|
18 {
|
|
19 public enum TypePrefixes : byte
|
|
20 {
|
|
21 PositiveFixNum = 0x00, // 0x00 - 0x7f
|
|
22 NegativeFixNum = 0xe0, // 0xe0 - 0xff
|
|
23
|
|
24 Nil = 0xc0,
|
|
25 False = 0xc2,
|
|
26 True = 0xc3,
|
|
27 Float = 0xca,
|
|
28 Double = 0xcb,
|
|
29 UInt8 = 0xcc,
|
|
30 UInt16 = 0xcd,
|
|
31 UInt32 = 0xce,
|
|
32 UInt64 = 0xcf,
|
|
33 Int8 = 0xd0,
|
|
34 Int16 = 0xd1,
|
|
35 Int32 = 0xd2,
|
|
36 Int64 = 0xd3,
|
|
37 Raw16 = 0xda,
|
|
38 Raw32 = 0xdb,
|
|
39 Array16 = 0xdc,
|
|
40 Array32 = 0xdd,
|
|
41 Map16 = 0xde,
|
|
42 Map32 = 0xdf,
|
|
43
|
|
44 FixRaw = 0xa0, // 0xa0 - 0xbf
|
|
45 FixArray = 0x90, // 0x90 - 0x9f
|
|
46 FixMap = 0x80, // 0x80 - 0x8f
|
|
47 }
|
|
48 }
|