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.
enum 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.
enum Endianness
import NIOCore
The core abstractions that make up SwiftNIO.
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
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
struct ByteBufferView
A view into a portion of a ByteBuffer
.
struct ByteBufferAllocator
The preferred allocator for ByteBuffer
values. The allocation strategy is opaque but is currently libc’s malloc
, realloc
and free
.
final class NIOFileHandle
Deprecated. NIOFileHandle
is a handle to an open file descriptor.
protocol FileDescriptor
struct FileRegion
A FileRegion
represent a readable portion usually created to be sent over the network.
typealias NIOPOSIXFileMode = mode_t
enum IOData
IOData
unifies standard SwiftNIO types that are raw bytes of data; currently ByteBuffer
and FileRegion
.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
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.
static let host: Endianness
The endianness of the machine running this program.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.