mirror of https://github.com/dsoprea/go-exif.git
type: Renamed `ValueBytes()` to `Encode()`.
parent
6c71ccf651
commit
7166faa0be
7
type.go
7
type.go
|
@ -724,11 +724,8 @@ func (tt TagType) Resolve(valueContext ValueContext) (value interface{}, err err
|
||||||
return value, nil
|
return value, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValueBytes knows how to encode the given value to a byte slice.
|
// Encode knows how to encode the given value to a byte slice.
|
||||||
|
func (tt TagType) Encode(byteOrder binary.ByteOrder, value interface{}) (encoded []byte, err error) {
|
||||||
// TODO(dustin): !! Rename to Encode().
|
|
||||||
|
|
||||||
func (tt TagType) ValueBytes(byteOrder binary.ByteOrder, value interface{}) (encoded []byte, err error) {
|
|
||||||
defer func() {
|
defer func() {
|
||||||
if state := recover(); state != nil {
|
if state := recover(); state != nil {
|
||||||
err = log.Wrap(state.(error))
|
err = log.Wrap(state.(error))
|
||||||
|
|
Loading…
Reference in New Issue