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
|
@ -118,7 +118,7 @@ func (u Uint256) CompareTo(other Uint256) int { return bytes.Compare(u[:], other
|
|||
|
||||
// EncodeBinary implements io.Serializable interface.
|
||||
func (u Uint256) EncodeBinary(w *io.BinWriter) {
|
||||
w.WriteBE(u)
|
||||
w.WriteBytes(u[:])
|
||||
}
|
||||
|
||||
// DecodeBinary implements io.Serializable interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue