encodeBytes(_:length:forKey:)
Encodes a buffer of data, given its length and a pointer, and associates it with a string key.
Declaration
func encodeBytes(_ bytes: UnsafePointer<UInt8>?, length: Int, forKey key: String)Discussion
Subclasses must override this method if they perform keyed coding.
See Also
Related Documentation
Encoding General Data
encodeArray(ofObjCType:count:at:)encode(_:forKey:)encodeBycopyObject(_:)encodeByrefObject(_:)encodeBytes(_:length:)encodeConditionalObject(_:)encodeConditionalObject(_:forKey:)encode(_:)encode(_:forKey:)encode(_:forKey:)encodeCInt(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:forKey:)encode(_:)