aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lunixbochs/struc/packer.go
blob: a3a91a228816dd3bd26421320e8dea74fc9d61e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package struc

import (
	"io"
	"reflect"
)

type Packer interface {
	Pack(buf []byte, val reflect.Value, options *Options) (int, error)
	Unpack(r io.Reader, val reflect.Value, options *Options) error
	Sizeof(val reflect.Value, options *Options) int
	String() string
}