summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lunixbochs/struc/legacy.go
blob: 5baf70d987ee8970cc4182edceab8b589af58e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package struc

import (
	"encoding/binary"
	"io"
)

// Deprecated. Use PackWithOptions.
func PackWithOrder(w io.Writer, data interface{}, order binary.ByteOrder) error {
	return PackWithOptions(w, data, &Options{Order: order})
}

// Deprecated. Use UnpackWithOptions.
func UnpackWithOrder(r io.Reader, data interface{}, order binary.ByteOrder) error {
	return UnpackWithOptions(r, data, &Options{Order: order})
}