github.com/nikandfor/tlog@v0.21.3/tlwire/wire.go (about) 1 package tlwire 2 3 // Basic types. 4 const ( 5 Int = iota << 5 6 Neg 7 Bytes 8 String 9 Array 10 Map 11 Semantic 12 Special 13 14 TagMask = 0b111_00000 15 TagDetMask = 0b000_11111 16 ) 17 18 // Len. 19 const ( 20 Len1 = 24 + iota 21 Len2 22 Len4 23 Len8 24 _ 25 _ 26 _ 27 LenBreak = Break 28 ) 29 30 // Specials. 31 const ( 32 None = 19 + iota 33 34 False 35 True 36 Nil 37 Undefined 38 39 Float8 40 Float16 41 Float32 42 Float64 43 _ 44 _ 45 _ 46 Break 47 ) 48 49 // Semantics. 50 const ( 51 Meta = iota 52 Error 53 Time 54 Duration 55 Big 56 57 Caller 58 _ 59 Hex 60 _ 61 _ 62 63 SemanticTlogBase 64 )