Merge pull request #546 from nspcc-dev/write-optimizations
Write optimizations
This commit is contained in:
commit
e4d821f32d
26 changed files with 59 additions and 50 deletions
|
@ -80,7 +80,7 @@ func (pt ParamType) MarshalJSON() ([]byte, error) {
|
|||
|
||||
// EncodeBinary implements io.Serializable interface.
|
||||
func (pt ParamType) EncodeBinary(w *io.BinWriter) {
|
||||
w.WriteLE(pt)
|
||||
w.WriteBytes([]byte{byte(pt)})
|
||||
}
|
||||
|
||||
// DecodeBinary implements io.Serializable interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue