Contents

encodeBytes(_:length:forKey:)

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

Declaration

func encodeBytes(_ bytes: UnsafePointer<UInt8>?, length: Int, forKey key: String)

Parameters

  • bytes:

    A C array of bytes to encode.

  • length:

    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

Related Documentation

Encoding Data and Objects