mirror of
https://github.com/dsoprea/go-exif.git
synced 2025-05-31 11:41:57 +00:00
Added a `Size()` method to it and decommissioned redundant `TagTypeSize()` and `(TagType).Size()`. - ifd_enumerate.go: Moved `ValueContext` definition to value_context.go .
20 lines
509 B
Go
20 lines
509 B
Go
package exif
|
|
|
|
// ValueContext describes all of the parameters required to find and extract
|
|
// the actual tag value.
|
|
type ValueContext struct {
|
|
UnitCount uint32
|
|
ValueOffset uint32
|
|
RawValueOffset []byte
|
|
AddressableData []byte
|
|
}
|
|
|
|
func newValueContext(unitCount, valueOffset uint32, rawValueOffset, addressableData []byte) ValueContext {
|
|
return ValueContext{
|
|
UnitCount: unitCount,
|
|
ValueOffset: valueOffset,
|
|
RawValueOffset: rawValueOffset,
|
|
AddressableData: addressableData,
|
|
}
|
|
}
|