Endianness

Endianness refers to the sequential order in which bytes are arranged into larger numerical values when stored in memory or when transmitted over digital links.

ByteBuffer-int.swift:207
enum Endianness

Cases

  • case big

    big endian, the most significant byte (MSB) is at the lowest address

  • case little

    little endian, the least significant byte (LSB) is at the lowest address

See also

Citizens in NIOCore

Conformances

  • protocol Equatable

    A type that can be compared for value equality.

  • protocol Hashable

    A type that can be hashed into a Hasher to produce an integer hash value.

  • protocol Sendable

    A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.

  • protocol SendableMetatype

    A type whose metatype can be shared across arbitrary concurrent contexts without introducing a risk of data races. When a generic type T conforms to SendableMetatype, its metatype T.Type conforms to Sendable. All concrete types implicitly conform to the SendableMetatype protocol, so its primary purpose is in generic code to prohibit the use of isolated conformances along with the generic type.

Type members

Type features