---
title: "decodeAtomicRepresentation(_:)"
framework: synchronization
role: symbol
role_heading: Type Method
path: "synchronization/atomicrepresentable/decodeatomicrepresentation(_:)"
---

# decodeAtomicRepresentation(_:)

Recovers the logical atomic type Self by destroying some AtomicRepresentation storage instance returned from an atomic operation.

## Declaration

```swift
static func decodeAtomicRepresentation(_ storage: consuming Self.AtomicRepresentation) -> Self
```

## Parameters

- `storage`: The storage representation for Self that’s used within atomic operations.

## Return Value

Return Value The newly decoded logical type Self.

## Discussion

Discussion note: This is not an atomic operation. This simply decodes the storage representation used in atomic operations back into the logical type for normal use, Self.
