---
title: "decodeAtomicRepresentation(_:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/unsafemutablerawbufferpointer/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 UnsafeMutableRawBufferPointer.AtomicRepresentation) -> UnsafeMutableRawBufferPointer
```

## Parameters

- `representation`: 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.
