Instance Method インスタンスメソッド

decodeInt32ForKey:

Decodes a 32-bit integer value associated with a given key. 与えられたキーと結び付けられた32ビット整数値をデコードします。

Declaration 宣言

- (int32_t)decodeInt32ForKey:(NSString *)key;

Parameters パラメータ

key

A key in the archive within the current decoding scope. key must not be nil. 現在のデコードスコープ内のアーカイブの中のあるキー。keyは、nilであってはいけません。

Return Value 戻り値

The 32-bit integer value associated with the key key. Returns 0 if key does not exist. キーkeyと結び付けられた32ビット整数値。0を返します、もしkeyが存在しないならば。

Discussion 議論

If the archived value was encoded with a different size but is still an integer, the type is coerced. If the archived value is too large to fit into a 32-bit integer, the method raises an NSRangeException. アーカイブされた値が異なるサイズでエンコードされたが依然として整数であるならば、型は強制されます。アーカイブされた値が32ビット整数に収まるには大きすぎるならば、メソッドはNSRangeExceptionを引き起こします。

See Also 参照

Decoding Data データをデコードする

Related Documentation 関連文書