Lines Matching full:obj
29 Expected<bool> Reader::read(Object &Obj) { in read() argument
37 Obj.Kind = Type::Nil; in read()
40 Obj.Kind = Type::Boolean; in read()
41 Obj.Bool = true; in read()
44 Obj.Kind = Type::Boolean; in read()
45 Obj.Bool = false; in read()
48 Obj.Kind = Type::Int; in read()
49 return readInt<int8_t>(Obj); in read()
51 Obj.Kind = Type::Int; in read()
52 return readInt<int16_t>(Obj); in read()
54 Obj.Kind = Type::Int; in read()
55 return readInt<int32_t>(Obj); in read()
57 Obj.Kind = Type::Int; in read()
58 return readInt<int64_t>(Obj); in read()
60 Obj.Kind = Type::UInt; in read()
61 return readUInt<uint8_t>(Obj); in read()
63 Obj.Kind = Type::UInt; in read()
64 return readUInt<uint16_t>(Obj); in read()
66 Obj.Kind = Type::UInt; in read()
67 return readUInt<uint32_t>(Obj); in read()
69 Obj.Kind = Type::UInt; in read()
70 return readUInt<uint64_t>(Obj); in read()
72 Obj.Kind = Type::Float; in read()
77 Obj.Float = in read()
82 Obj.Kind = Type::Float; in read()
87 Obj.Float = in read()
92 Obj.Kind = Type::String; in read()
93 return readRaw<uint8_t>(Obj); in read()
95 Obj.Kind = Type::String; in read()
96 return readRaw<uint16_t>(Obj); in read()
98 Obj.Kind = Type::String; in read()
99 return readRaw<uint32_t>(Obj); in read()
101 Obj.Kind = Type::Binary; in read()
102 return readRaw<uint8_t>(Obj); in read()
104 Obj.Kind = Type::Binary; in read()
105 return readRaw<uint16_t>(Obj); in read()
107 Obj.Kind = Type::Binary; in read()
108 return readRaw<uint32_t>(Obj); in read()
110 Obj.Kind = Type::Array; in read()
111 return readLength<uint16_t>(Obj); in read()
113 Obj.Kind = Type::Array; in read()
114 return readLength<uint32_t>(Obj); in read()
116 Obj.Kind = Type::Map; in read()
117 return readLength<uint16_t>(Obj); in read()
119 Obj.Kind = Type::Map; in read()
120 return readLength<uint32_t>(Obj); in read()
122 Obj.Kind = Type::Extension; in read()
123 return createExt(Obj, FixLen::Ext1); in read()
125 Obj.Kind = Type::Extension; in read()
126 return createExt(Obj, FixLen::Ext2); in read()
128 Obj.Kind = Type::Extension; in read()
129 return createExt(Obj, FixLen::Ext4); in read()
131 Obj.Kind = Type::Extension; in read()
132 return createExt(Obj, FixLen::Ext8); in read()
134 Obj.Kind = Type::Extension; in read()
135 return createExt(Obj, FixLen::Ext16); in read()
137 Obj.Kind = Type::Extension; in read()
138 return readExt<uint8_t>(Obj); in read()
140 Obj.Kind = Type::Extension; in read()
141 return readExt<uint16_t>(Obj); in read()
143 Obj.Kind = Type::Extension; in read()
144 return readExt<uint32_t>(Obj); in read()
148 Obj.Kind = Type::Int; in read()
152 Obj.Int = I; in read()
157 Obj.Kind = Type::UInt; in read()
158 Obj.UInt = FB; in read()
163 Obj.Kind = Type::String; in read()
165 return createRaw(Obj, Size); in read()
169 Obj.Kind = Type::Array; in read()
170 Obj.Length = FB & ~FixBitsMask::Array; in read()
175 Obj.Kind = Type::Map; in read()
176 Obj.Length = FB & ~FixBitsMask::Map; in read()
184 template <class T> Expected<bool> Reader::readRaw(Object &Obj) { in readRaw() argument
191 return createRaw(Obj, Size); in readRaw()
194 template <class T> Expected<bool> Reader::readInt(Object &Obj) { in readInt() argument
199 Obj.Int = static_cast<int64_t>(endian::read<T, Endianness>(Current)); in readInt()
204 template <class T> Expected<bool> Reader::readUInt(Object &Obj) { in readUInt() argument
209 Obj.UInt = static_cast<uint64_t>(endian::read<T, Endianness>(Current)); in readUInt()
214 template <class T> Expected<bool> Reader::readLength(Object &Obj) { in readLength() argument
219 Obj.Length = static_cast<size_t>(endian::read<T, Endianness>(Current)); in readLength()
224 template <class T> Expected<bool> Reader::readExt(Object &Obj) { in readExt() argument
231 return createExt(Obj, Size); in readExt()
234 Expected<bool> Reader::createRaw(Object &Obj, uint32_t Size) { in createRaw() argument
239 Obj.Raw = StringRef(Current, Size); in createRaw()
244 Expected<bool> Reader::createExt(Object &Obj, uint32_t Size) { in createExt() argument
249 Obj.Extension.Type = *Current++; in createExt()
254 Obj.Extension.Bytes = StringRef(Current, Size); in createExt()