Required Static Methodswift 6.0.3Synchronization

encodeAtomicRepresentation(_:)

Destroys a value of Self and prepares an AtomicRepresentation storage type to be used for atomic operations.

iOS
18.0+
macOS
15.0+
tvOS
18.0+
visionOS
2.0+
watchOS
11.0+
static func encodeAtomicRepresentation(_ value: consuming Self) -> Self.AtomicRepresentation

Parameters

value

A valid instance of Self that’s about to be destroyed to encode an instance of its AtomicRepresentation.

Returns

The newly encoded AtomicRepresentation storage.