-
Notifications
You must be signed in to change notification settings - Fork 198
Instance description
Instance description is very close to attribute description (and inherits all its properties), but it specifies an attribute to be read (or calculated) out of regular sequence. Typically, each instance is compiled into a reader function that will parse requested data on demand, cache the result and return whatever's been parsed previously on subsequent calls.
Instance inherits attribute description, so everything that's described there can be used, except for id
, which is useless, because all instances already have name due to map string key.
Specifies position in a stream from which the value should be parsed.
Specifies an IO stream from which a value should be parsed.
Overrides any real reading & parsing. Instead, just calculates function specified in value
and returns the result as this instance. Can be used for multitude of purposes, such as data conversion while reading, etc.