gitee.com/quant1x/gox@v1.21.2/encoding/binary/struc/packer.go (about) 1 package struc 2 3 import ( 4 "io" 5 "reflect" 6 ) 7 8 type Packer interface { 9 Pack(buf []byte, val reflect.Value, options *Options) (int, error) 10 Unpack(r io.Reader, val reflect.Value, options *Options) error 11 Sizeof(val reflect.Value, options *Options) int 12 String() string 13 }