Lines Matching refs:offset
149 uint16_t offset = kNameOffsetInQuery; in GetName() local
151 return Name::ReadName(*mQuery, offset, aNameBuffer, aNameBufferSize); in GetName()
164 uint16_t offset; in CheckForHostNameAlias() local
172 SelectSection(aSection, offset, numRecords); in CheckForHostNameAlias()
173 …error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aHostName, cname… in CheckForHostNameAlias()
187 aHostName.SetFromMessage(*mMessage, offset); in CheckForHostNameAlias()
188 SuccessOrExit(error = Name::ParseName(*mMessage, offset)); in CheckForHostNameAlias()
207 uint16_t offset; in FindHostAddress() local
214 SelectSection(aSection, offset, numRecords); in FindHostAddress()
215 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, name, aaaa… in FindHostAddress()
228 uint16_t offset; in FindARecord() local
234 SelectSection(aSection, offset, numRecords); in FindARecord()
235 error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, name, aARecord); in FindARecord()
273 uint16_t offset; in ReadServiceInfo() local
285 SelectSection(aSection, offset, numRecords); in ReadServiceInfo()
286 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aN… in ReadServiceInfo()
293 hostName.SetFromMessage(*mMessage, offset); in ReadServiceInfo()
297 …SuccessOrExit(error = srvRecord.ReadTargetHostName(*mMessage, offset, aServiceInfo.mHostNameBuffer, in ReadServiceInfo()
302 SuccessOrExit(error = Name::ParseName(*mMessage, offset)); in ReadServiceInfo()
332 uint16_t offset; in ReadTxtRecord() local
346 SelectSection(aSection, offset, numRecords); in ReadTxtRecord()
350 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, /* aIndex */ 0, aN… in ReadTxtRecord()
352 …error = txtRecord.ReadTxtData(*mMessage, offset, aServiceInfo.mTxtData, aServiceInfo.mTxtDataSize); in ReadTxtRecord()
381 uint16_t offset = aMessage.GetOffset(); in PopulateFrom() local
386 IgnoreError(aMessage.Read(offset, header)); in PopulateFrom()
387 offset += sizeof(Header); in PopulateFrom()
391 IgnoreError(Name::ParseName(aMessage, offset)); in PopulateFrom()
392 offset += sizeof(Question); in PopulateFrom()
395 mAnswerOffset = offset; in PopulateFrom()
396 IgnoreError(ResourceRecord::ParseRecords(aMessage, offset, header.GetAnswerCount())); in PopulateFrom()
397 IgnoreError(ResourceRecord::ParseRecords(aMessage, offset, header.GetAuthorityRecordCount())); in PopulateFrom()
398 mAdditionalOffset = offset; in PopulateFrom()
399 IgnoreError(ResourceRecord::ParseRecords(aMessage, offset, header.GetAdditionalRecordCount())); in PopulateFrom()
458 uint16_t offset; in GetServiceInstance() local
465 SelectSection(kAnswerSection, offset, numRecords); in GetServiceInstance()
466 …SuccessOrExit(error = ResourceRecord::FindRecord(*mMessage, offset, numRecords, aIndex, serviceNam… in GetServiceInstance()
467 error = ptrRecord.ReadPtrName(*mMessage, offset, aLabelBuffer, aLabelBufferSize, nullptr, 0); in GetServiceInstance()
512 uint16_t offset; in FindPtrRecord() local
520 SelectSection(kAnswerSection, offset, numRecords); in FindPtrRecord()
524 SuccessOrExit(error = Name::CompareName(*mMessage, offset, serviceName)); in FindPtrRecord()
526 error = ResourceRecord::ReadRecord(*mMessage, offset, ptrRecord); in FindPtrRecord()
540 labelOffset = offset; in FindPtrRecord()
545 aInstanceName.SetFromMessage(*mMessage, offset); in FindPtrRecord()
552 offset += static_cast<uint16_t>(ptrRecord.GetSize()) - sizeof(ptrRecord); in FindPtrRecord()
570 uint16_t offset = kNameOffsetInQuery; in GetServiceName() local
572 SuccessOrExit(error = Name::ReadLabel(*mQuery, offset, aLabelBuffer, aLabelBufferSize)); in GetServiceName()
575 SuccessOrExit(error = Name::ReadName(*mQuery, offset, aNameBuffer, aNameBufferSize)); in GetServiceName()
1361 uint16_t offset = aResponseMessage.GetOffset(); in ParseResponse() local
1366 SuccessOrExit(error = aResponseMessage.Read(offset, header)); in ParseResponse()
1367 offset += sizeof(Header); in ParseResponse()
1386 SuccessOrExit(error = Name::CompareName(aResponseMessage, offset, queryName)); in ParseResponse()
1387 offset += sizeof(Question); in ParseResponse()
1398 …SuccessOrExit(error = ResourceRecord::ParseRecords(aResponseMessage, offset, header.GetAnswerCount… in ParseResponse()
1399 …SuccessOrExit(error = ResourceRecord::ParseRecords(aResponseMessage, offset, header.GetAuthorityRe… in ParseResponse()
1400 …SuccessOrExit(error = ResourceRecord::ParseRecords(aResponseMessage, offset, header.GetAdditionalR… in ParseResponse()
1852 size_t offset = 0; in HandleTcpReceiveAvailable() local
1872 SuccessOrExit(ReadFromLinkBuffer(data, offset, *message, sizeof(uint16_t))); in HandleTcpReceiveAvailable()
1879 SuccessOrExit(ReadFromLinkBuffer(data, offset, *message, length)); in HandleTcpReceiveAvailable()