Instance Methodswift-nio 2.84.0NIOCore
_failEarlyRangeCheck(_:bounds:)
ByteBuffer-views.swift:153func _failEarlyRangeCheck(_ index: ByteBufferView.Index, bounds: Range<ByteBufferView.Index>)
func _failEarlyRangeCheck(_ index: ByteBufferView.Index, bounds: Range<ByteBufferView.Index>)
s7NIOCore14ByteBufferViewV20_failEarlyRangeCheck_6boundsySi_SnySiGtF
What are these?6KJGX
import NIOCore
The core abstractions that make up SwiftNIO.
struct ByteBufferView
A view into a portion of a ByteBuffer
.
typealias Index = Int
@frozen struct Range<Bound> where Bound : Comparable
A half-open interval from a lower bound up to, but not including, an upper bound.
init()
init(_ buffer: ByteBuffer)
Creates a ByteBufferView
from the readable bytes of the given buffer
.
init(arrayLiteral elements: ByteBufferView.Element...)
required by ExpressibleByArrayLiteral
var count: Int { get }
var endIndex: ByteBufferView.Index { get }
var startIndex: ByteBufferView.Index { get }
subscript(range: Range<ByteBufferView.Index>) -> ByteBufferView { get set }
subscript(position: ByteBufferView.Index) -> UInt8 { get set }
static func == (lhs: ByteBufferView, rhs: ByteBufferView) -> Bool
required by Equatable
func _copyContents(initializing ptr: UnsafeMutableBufferPointer<UInt8>) -> (IndexingIterator<ByteBufferView>, UnsafeMutableBufferPointer<UInt8>.Index)
func _customContainsEquatableElement(_ element: ByteBufferView.Element) -> Bool?
func _customIndexOfEquatableElement(_ element: ByteBufferView.Element) -> ByteBufferView.Index??
func _customLastIndexOfEquatableElement(_ element: ByteBufferView.Element) -> ByteBufferView.Index??
func _failEarlyRangeCheck(_ index: ByteBufferView.Index, bounds: ClosedRange<ByteBufferView.Index>)
func _failEarlyRangeCheck(_ range: Range<ByteBufferView.Index>, bounds: Range<ByteBufferView.Index>)
mutating func append(_ byte: UInt8)
Writes a single byte to the underlying ByteBuffer
.
mutating func append<Bytes>(contentsOf bytes: Bytes) where Bytes : Sequence, Bytes.Element == UInt8
Writes a sequence of bytes to the underlying ByteBuffer
.
func hash(into hasher: inout Hasher)
required by Hashable
func index(after i: ByteBufferView.Index) -> ByteBufferView.Index
mutating func replaceSubrange<C>(_ subrange: Range<ByteBufferView.Index>, with newElements: C) where C : Collection, C.Element == UInt8
mutating func reserveCapacity(_ minimumCapacity: Int)
Reserves enough space in the underlying ByteBuffer
such that this view can store the specified number of bytes without reallocation.
func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R?
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
typealias Element = UInt8
typealias SubSequence = ByteBufferView