Lines Matching defs:tnf
188 uint32_t tnf = record.lock()->tnf_;
192 bool il = (tnf == TNF_EMPTY) ? true : (NfcSdkCommon::GetHexStrBytesLen(id) > 0);
194 | (sr ? FLAG_SR : 0) | (il ? FLAG_IL : 0)) | (char)tnf;
218 layout.tnf = static_cast<short>(head & FLAG_TNF);
236 } else if (isChunkFound && layout.tnf != TNF_UNCHANGED) {
237 ErrorLog("IsInvalidRecordLayoutHead, 5th error for tnf");
239 } else if (!isChunkFound && layout.tnf == TNF_UNCHANGED) {
240 ErrorLog("IsInvalidRecordLayoutHead, 6th error for tnf");
278 if (layout.typeLength == 0 && layout.tnf != TNF_UNKNOWN) {
279 ErrorLog("IsInvalidRecordLayoutHead, 2nd error for typeLength and tnf");
345 chunkTnf = layout.tnf;
363 layout.tnf = chunkTnf;
369 std::shared_ptr<NdefRecord> NdefMessage::CreateNdefRecord(short tnf, const std::string& id,
372 bool isValidTnf = CheckTnf(tnf, tagRtdType, id, payload);
378 ndefRecord->tnf_ = tnf;
385 bool NdefMessage::CheckTnf(short tnf, const std::string& tagRtdType, const std::string& id, const std::string& payload)
387 switch (tnf) {
471 std::shared_ptr<NdefRecord> record = CreateNdefRecord(layout.tnf, id, payload, tagRtdType);