tlv: Added bool to primitive
Signed-off-by: Ononiwu Maureen <amaka013@gmail.com>
This commit is contained in:
1 parent
ad5cd9c8bb
commit
206f773a9b
4 files changed
+102
-32
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user