---
title: ByteOrder
framework: Swift
role: symbol
role_heading: Enumeration
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: swift/byteorder
---

# ByteOrder

A byte ordering in memory.

## Declaration

```swift
@frozen enum ByteOrder
```

## Topics

### Operators

- [==(_:_:)](swift/byteorder/==(_:_:).md)

### Enumeration Cases

- [ByteOrder.bigEndian](swift/byteorder/bigendian.md)
- [ByteOrder.littleEndian](swift/byteorder/littleendian.md)

### Instance Properties

- [hashValue](swift/byteorder/hashvalue.md)

### Instance Methods

- [hash(into:)](swift/byteorder/hash(into:).md)

### Type Properties

- [native](swift/byteorder/native.md)

### Default Implementations

- [Equatable Implementations](swift/byteorder/equatable-implementations.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Safe Access to Raw Bytes

- [FullyInhabited](swift/fullyinhabited.md)
- [ConvertibleFromBytes](swift/convertiblefrombytes.md)
- [ConvertibleToBytes](swift/convertibletobytes.md)
- [bitCast(_:to:)](swift/bitcast(_:to:).md)
