The following attributes are defined for offset values.
sizeGives an offset with the storage occupied by the offset. Examples:
(poke) 10#B'size 0x20UL#b (poke) 10N#B'size 0x4UL#b
magnitudeGives the magnitude part of the offset. Examples:
(poke) 10#B'magnitude 10 (poke) 2H#b'magnitude 2H
unitGives a number with the unit of the offset, expressed in bits. Examples:
(poke) 10#B'unit 8UL (poke) 2H#b'unit 1UL
mappedAlways 0 for offsets. (see Mapping).
lengthAlways 1UL for offsets.
ref ([IOS])If the value is a referring offset, then the application of the
'ref attribute implies the mapping of the referred value.
The attribute gets an optional argument which is the IO space to use
when mapping the referred value. If this argument is not provided
then the current IO space is assumed. The application of this
attribute may result in a E_no_ios exception.