decodeBytes(forKey:returnedLength:)
Decodes a buffer of data that was previously encoded with Encodebytes(_:length:forkey:) and associated with the string key.
Declaration
func decodeBytes(forKey key: String, returnedLength lengthp: UnsafeMutablePointer<Int>?) -> UnsafePointer<UInt8>?Discussion
The buffer’s length is returned by reference in lengthp. The returned bytes are immutable. Subclasses must override this method if they perform keyed coding.
See Also
Related Documentation
Decoding General Data
decodeArray(ofObjCType:count:at:)decodeBool(forKey:)decodeBytes(withReturnedLength:)decodeData()decodeDouble(forKey:)decodeFloat(forKey:)decodeCInt(forKey:)decodeInteger(forKey:)decodeInt32(forKey:)decodeInt64(forKey:)decodeObject()decodeObject(forKey:)decodePoint()decodePoint(forKey:)decodePropertyList()