Commit 474d62e7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0413e93b
...@@ -122,7 +122,6 @@ func main() { ...@@ -122,7 +122,6 @@ func main() {
} }
neoQualifier = types.RelativeTo(neoPkg) neoQualifier = types.RelativeTo(neoPkg)
// prologue // prologue
f := fv[0] // proto.go comes first f := fv[0] // proto.go comes first
buf := Buffer{} buf := Buffer{}
...@@ -206,11 +205,11 @@ import ( ...@@ -206,11 +205,11 @@ import (
// info about encode/decode of a basic fixed-size type // info about encode/decode of a basic fixed-size type
type basicCodec struct { type basicCodec struct {
wireSize int wireSize int
encode string encode string
decode string decode string
} }
var basicTypes = map[types.BasicKind]basicCodec { var basicTypes = map[types.BasicKind]basicCodec{
// encode: %v %v will be `data[n:]`, value // encode: %v %v will be `data[n:]`, value
// decode: %v will be `data[n:]` (and already made sure data has more enough bytes to read) // decode: %v will be `data[n:]` (and already made sure data has more enough bytes to read)
types.Bool: {1, "(%v)[0] = bool2byte(%v)", "byte2bool((%v)[0])"}, types.Bool: {1, "(%v)[0] = bool2byte(%v)", "byte2bool((%v)[0])"},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment