Mistake on this page?
Report an issue in GitHub or email us
Public Types | Public Member Functions | Data Fields
RecordType Struct Reference

Encode a record type. More...

#include <Record.h>

Public Types

Public Member Functions

 RecordType ()
 Construct an unknown type. More...
 
 RecordType (tnf_t tnf)
 Construct a type with no value. More...
 
 RecordType (tnf_t tnf, const Span< const uint8_t > &value)
 Construct a RecordType from a type name format and its associated value. More...
 

Data Fields

tnf_t tnf
 Type name format of the record type. More...
 
Span< const uint8_t > value
 Value associated with the record type. More...
 

Detailed Description

Encode a record type.

A RecordType is composed of a type name format flag and an optional type value.

Definition at line 52 of file Record.h.

Member Enumeration Documentation

enum tnf_t

Type name format of a record.

Enumerator
empty 

empty type; value must be empty.

empty

well_known_type 

Type defined by the NFC forum; value must be defined.

well_known_type

media_type 

Mime type; value must be defined.

media_type

absolute_uri 

Absolute URI; value must be defined.

absolute_uri

external_type 

Type defined by vendors; value must be defined.

external_type

unknown 

Unknown type; value must be empty.

unknown

unchanged 

Use for middle and terminating chunk record.

value must be empty.unchanged

Definition at line 56 of file Record.h.

Constructor & Destructor Documentation

Construct an unknown type.

Definition at line 97 of file Record.h.

RecordType ( tnf_t  tnf)

Construct a type with no value.

Note
Valid tnf are: empty, unknown and unchanged.
Parameters
tnfThe type name format of the type.

Definition at line 106 of file Record.h.

RecordType ( tnf_t  tnf,
const Span< const uint8_t > &  value 
)

Construct a RecordType from a type name format and its associated value.

Parameters
tnfThe type name format of the record type.
valueThe value associated with the tnf.

Definition at line 116 of file Record.h.

Field Documentation

tnf_t tnf

Type name format of the record type.

Definition at line 123 of file Record.h.

Span<const uint8_t> value

Value associated with the record type.

It can be empty.

Definition at line 128 of file Record.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.