---
title: TKTLVRecord
framework: cryptotokenkit
role: symbol
role_heading: Class
path: cryptotokenkit/tktlvrecord
---

# TKTLVRecord

The base class encapsulating a Tag-Length-Value record.

## Declaration

```swift
class TKTLVRecord
```

## Overview

Overview The CryptoTokenKit framework provides the following concrete subclasses for various TLV record encodings: TKBERTLVRecord for BER-TLV encoding rules TKSimpleTLVRecord for Simple-TLV encoding according to ISO 7816-4 TKCompactTLVRecord for Compact-TLV encoding according to ISO 7816-4

## Topics

### Creating Records

- [sequenceOfRecords(from:)](cryptotokenkit/tktlvrecord/sequenceofrecords(from:).md)
- [init(from:)](cryptotokenkit/tktlvrecord/init(from:).md)

### Accessing the Tag Field

- [tag](cryptotokenkit/tktlvrecord/tag.md)
- [TKTLVTag](cryptotokenkit/tktlvtag.md)

### Accessing the Value Field

- [value](cryptotokenkit/tktlvrecord/value.md)

### Accessing Record Data

- [data](cryptotokenkit/tktlvrecord/data.md)

### Initializers

- [init(fromData:)](cryptotokenkit/tktlvrecord/init(fromdata:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [TKBERTLVRecord](cryptotokenkit/tkbertlvrecord.md)
- [TKCompactTLVRecord](cryptotokenkit/tkcompacttlvrecord.md)
- [TKSimpleTLVRecord](cryptotokenkit/tksimpletlvrecord.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Working with Tag-Length-Value Records

- [TKBERTLVRecord](cryptotokenkit/tkbertlvrecord.md)
- [TKCompactTLVRecord](cryptotokenkit/tkcompacttlvrecord.md)
- [TKSimpleTLVRecord](cryptotokenkit/tksimpletlvrecord.md)
