mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-28 10:45:39 +00:00
Remote TypeByte()
This commit is contained in:
+7
-1
@@ -1,3 +1,9 @@
|
||||
### NOTICE
|
||||
|
||||
This documentation is out of date.
|
||||
* 0x00 is reserved as a nil byte for RegisterInterface
|
||||
* moved TypeByte() into RegisterInterface/ConcreteType
|
||||
|
||||
# `tendermint/binary`
|
||||
|
||||
The `binary` submodule encodes primary types and structs into bytes.
|
||||
@@ -127,4 +133,4 @@ is encoded or decoded directly:
|
||||
WriteBinary(Dog{}, buf, n, err) // Writes GreeterTypeDog byte
|
||||
dog_ := ReadBinary(Dog{}, buf, n, err) // Expects to read GreeterTypeDog byte
|
||||
dog := dog_.(Dog) // ok if *err != nil, otherwise dog_ == nil.
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user