次へ: Option Capabilities
上へ: Option Descriptor Type
戻る: Option Value Unit
目次
索引
Option Value Size
Member size specifies the size of the option value (in bytes).
This member has a slightly different interpretation depending on the
type of the option value:
- SANE_TYPE_STRING:
- The size is the maximum size of
the string. For the purpose of string size calcuations, the
terminating NUL character is considered to be part of the
string. Note that the terminating NUL character must
always be present in string option values.
- SANE_TYPE_INT, SANE_TYPE_FIXED:
- The size
must be a positive integer multiple of the size of a
SANE_Word. The option value is a vector of length
- SANE_TYPE_BOOL:
- The size must be set to
sizeof(SANE_Word).
- SANE_TYPE_BUTTON, SANE_TYPE_GROUP:
- The
option size is ignored.
MATSUBAYASHI 'Shaolin' Kohji
平成14年10月29日