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

# decodeAtomicRepresentation(_:)

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

## Declaration

```swift
static func decodeAtomicRepresentation(_ representation: consuming UInt8.AtomicRepresentation) -> UInt8
```

## 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.
