Instance Subscriptswift-nio 2.86.1NIOCore
subscript(_:)
ByteBuffer-views.swift:91subscript(range: Range<ByteBufferView.Index>) -> ByteBufferView { get set } subscript(range: Range<ByteBufferView.Index>) -> ByteBufferView { get set } import NIOCoreThe core abstractions that make up SwiftNIO.
struct ByteBufferViewA view into a portion of a ByteBuffer.
@frozen struct Range<Bound> where Bound : ComparableA half-open interval from a lower bound up to, but not including, an upper bound.
typealias Index = Intinit() 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(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(_ index: ByteBufferView.Index, bounds: Range<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 = UInt8typealias SubSequence = ByteBufferView