Instance Method

encodeBytes:length:forKey:

Encodes a given number of bytes from a given C array of bytes and associates them with a key.

Declaration

- (void)encodeBytes:(const uint8_t *)bytes length:(NSUInteger)length forKey:(NSString *)key;

Parameters

bytesp

A C array of bytes to encode.

lenv

The number of bytes from bytesp to encode.

key

The key with which to associate the encoded value. This value must not be nil.

See Also

Encoding Data and Objects

- encodeBool:forKey:

Encodes a given Boolean value and associates it with a key.

- encodeConditionalObject:forKey:

Encodes a reference to a given object and associates it with a key only if it has been unconditionally encoded elsewhere in the archive.

- encodeDouble:forKey:

Encodes a given double value and associates it with a key.

- encodeFloat:forKey:

Encodes a given float value and associates it with a key.

- encodeInt:forKey:

Encodes a given int value and associates it with a key.

- encodeInt32:forKey:

Encodes a given 32-bit integer value and associates it with a key.

- encodeInt64:forKey:

Encodes a given 64-bit integer value and associates it with a key.

- encodeObject:forKey:

Encodes a given object and associates it with a given key.