Lines Matching refs:error

72     otError error = OT_ERROR_NONE;  in ReadBool()  local
75 SuccessOrExit(error = ReadUint8(byte)); in ReadBool()
88 error = OT_ERROR_PARSE; in ReadBool()
92 return error; in ReadBool()
97 otError error = OT_ERROR_NONE; in ReadUint8() local
99 VerifyOrExit(mIndex + sizeof(uint8_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint8()
104 return error; in ReadUint8()
109 otError error = OT_ERROR_NONE; in ReadInt8() local
112 SuccessOrExit(error = ReadUint8(byte)); in ReadInt8()
116 return error; in ReadInt8()
121 otError error = OT_ERROR_NONE; in ReadUint16() local
123 VerifyOrExit(mIndex + sizeof(uint16_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint16()
130 return error; in ReadUint16()
135 otError error = OT_ERROR_NONE; in ReadInt16() local
138 SuccessOrExit(error = ReadUint16(u16)); in ReadInt16()
142 return error; in ReadInt16()
147 otError error = OT_ERROR_NONE; in ReadUint32() local
149 VerifyOrExit(mIndex + sizeof(uint32_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint32()
157 return error; in ReadUint32()
162 otError error = OT_ERROR_NONE; in ReadInt32() local
165 SuccessOrExit(error = ReadUint32(u32)); in ReadInt32()
169 return error; in ReadInt32()
174 otError error = OT_ERROR_NONE; in ReadUint64() local
176 VerifyOrExit(mIndex + sizeof(uint64_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint64()
186 return error; in ReadUint64()
191 otError error = OT_ERROR_NONE; in ReadInt64() local
194 SuccessOrExit(error = ReadUint64(u64)); in ReadInt64()
198 return error; in ReadInt64()
203 otError error = OT_ERROR_NONE; in ReadUintPacked() local
208 VerifyOrExit(parsedLen > 0, error = OT_ERROR_PARSE); in ReadUintPacked()
214 return error; in ReadUintPacked()
220 otError error = OT_ERROR_NONE; in ReadItem() local
222 VerifyOrExit(mIndex + aSize <= mEnd, error = OT_ERROR_PARSE); in ReadItem()
229 return error; in ReadItem()
234 otError error = OT_ERROR_NONE; in ReadIp6Address() local
237 SuccessOrExit(error = ReadIp6Address(ipv6AddrPtr)); in ReadIp6Address()
238 VerifyOrExit(ipv6AddrPtr != nullptr, error = OT_ERROR_PARSE); in ReadIp6Address()
242 return error; in ReadIp6Address()
247 otError error = OT_ERROR_NONE; in ReadIp6Address() local
250 SuccessOrExit(error = ReadIp6Address(ipv6AddrPtr)); in ReadIp6Address()
251 VerifyOrExit(ipv6AddrPtr != nullptr, error = OT_ERROR_PARSE); in ReadIp6Address()
255 return error; in ReadIp6Address()
260 otError error = OT_ERROR_NONE; in ReadEui64() local
263 SuccessOrExit(error = ReadEui64(eui64Ptr)); in ReadEui64()
264 VerifyOrExit(eui64Ptr != nullptr, error = OT_ERROR_PARSE); in ReadEui64()
268 return error; in ReadEui64()
273 otError error = OT_ERROR_NONE; in ReadEui64() local
276 SuccessOrExit(error = ReadEui64(eui64Ptr)); in ReadEui64()
277 VerifyOrExit(eui64Ptr != nullptr, error = OT_ERROR_PARSE); in ReadEui64()
281 return error; in ReadEui64()
286 otError error = OT_ERROR_NONE; in ReadEui48() local
289 SuccessOrExit(error = ReadEui48(eui48Ptr)); in ReadEui48()
290 VerifyOrExit(eui48Ptr != nullptr, error = OT_ERROR_PARSE); in ReadEui48()
294 return error; in ReadEui48()
299 otError error = OT_ERROR_NONE; in ReadUtf8() local
303 VerifyOrExit(mIndex + sizeof(uint8_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUtf8()
306 VerifyOrExit(len < static_cast<uint16_t>(mEnd - mIndex), error = OT_ERROR_PARSE); in ReadUtf8()
314 return error; in ReadUtf8()
326 otError error = OT_ERROR_NONE; in ReadDataWithLen() local
329 SuccessOrExit(error = ReadUint16(len)); in ReadDataWithLen()
330 SuccessOrExit(error = ReadItem(&aData, len)); in ReadDataWithLen()
334 return error; in ReadDataWithLen()
339 otError error = OT_ERROR_NONE; in OpenStruct() local
342 VerifyOrExit(mNumOpenStructs < kMaxNestedStructs, error = OT_ERROR_INVALID_STATE); in OpenStruct()
344 SuccessOrExit(error = ReadUint16(structLen)); in OpenStruct()
345 VerifyOrExit(structLen <= mEnd - mIndex, error = OT_ERROR_PARSE); in OpenStruct()
352 return error; in OpenStruct()
357 otError error = OT_ERROR_NONE; in CloseStruct() local
359 VerifyOrExit(mNumOpenStructs > 0, error = OT_ERROR_INVALID_STATE); in CloseStruct()
376 return error; in CloseStruct()
388 otError error = OT_ERROR_NONE; in ResetToSaved() local
390 VerifyOrExit(IsSavedPositionValid(), error = OT_ERROR_INVALID_STATE); in ResetToSaved()
397 return error; in ResetToSaved()