tlv: Added bool to primitive

Signed-off-by: Ononiwu Maureen <amaka013@gmail.com>
This commit is contained in:
Ononiwu Maureen committed 2023-10-16 14:21:25 +01:00
1 parent ad5cd9c8bb
commit 206f773a9b
4 files changed
+102 -32

No files matched your search

+5
View File
@@ -104,6 +104,11 @@ func MakePrimitiveRecord(typ Type, val interface{}) Record {
decoder Decoder
)
switch e := val.(type) {
case *bool:
staticSize = 1
encoder = EBool
decoder = DBool
case *uint8:
staticSize = 1
encoder = EUint8