mirror of
https://github.com/dsoprea/go-exif.git
synced 2025-04-27 13:12:39 +00:00
type: Renamed ValueBytes()
to Encode()
.
This commit is contained in:
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…
x
Reference in New Issue
Block a user