<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Int/AtomicRepresentable-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "AtomicRepresentable Implementations"
}
-->

# AtomicRepresentable Implementations

## Topics

### Type Methods

[`static func decodeAtomicRepresentation(consuming Int.AtomicRepresentation) -> Int`](/documentation/Swift/Int/decodeAtomicRepresentation(_:))

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

[`static func encodeAtomicRepresentation(borrowing Int) -> Int.AtomicRepresentation`](/documentation/Swift/Int/encodeAtomicRepresentation(_:))

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)