Combine Enum & EnumType (#922)

* Extend EnumType with basic (convert use)

* Remove Enum, adjust EnumType tests with Enum version

* Remove aliasses

* test json finaised -> finalized
This commit is contained in:
Jaco Greeff
2019-05-16 13:52:00 +02:00
committed by GitHub
parent 25d5869420
commit 42fe4e1739
19 changed files with 292 additions and 411 deletions
-1
View File
@@ -14,7 +14,6 @@ These are the base types of the codec. They are typically not used directly, but
| [[Base]] | A type extends the Base class, when it holds a value |
| [[Compact]] | A compact length-encoding codec wrapper. Mostly used by other types to add length-prefixed encoding |
| [[Enum]] | A codec wrapper for an enum. Enums are encoded as a single byte, where the byte is a zero-indexed value |
| [[EnumType]] | Implements an enum, which wraps a different type based on the value|
| [[Int]] | A generic signed integer codec |
| [[Option]] | An Option is an optional field. The first byte indicates that there is is value to follow |
| [[Set]] | An Set is an array of string values, represented an an encoded type by a bitwise representation of the values |