Instance Methodswift-nio 2.72.0NIOCore
_copyContents(initializing:)
ByteBuffer-views.swift:135func _copyContents(initializing ptr: UnsafeMutableBufferPointer<UInt8>) -> (Iterator, UnsafeMutableBufferPointer<UInt8>.Index)
Other members in extension
Typealiases
Type members
init(
) init(ByteBuffer
) Creates a
ByteBufferView
from the readable bytes of the givenbuffer
.init(arrayLiteral: Element...
) required by
ExpressibleByArrayLiteral
static func == (lhs: ByteBufferView, rhs: ByteBufferView
) -> Bool required by
Equatable
Instance members
var count: Int
var endIndex: Index
var startIndex: Index
subscript(Range<Index>
) -> ByteBufferView subscript(Index
) -> UInt8 func append(UInt8
) Writes a single byte to the underlying
ByteBuffer
.func append<Bytes>(contentsOf: Bytes
) Writes a sequence of bytes to the underlying
ByteBuffer
.func hash(into: inout Hasher
) required by
Hashable
func index(after: Index
) -> Index func replaceSubrange<C>(Range<Index>, with: C
) func reserveCapacity(Int
) Reserves enough space in the underlying
ByteBuffer
such that this view can store the specified number of bytes without reallocation.func withContiguousStorageIfAvailable<R>((UnsafeBufferPointer<UInt8>) throws -> R
) rethrows -> R? func withUnsafeBytes<R>((UnsafeRawBufferPointer) throws -> R
) rethrows -> R
Show implementation details (6)
Hide implementation details
func _customContainsEquatableElement(Element
) -> Bool? func _customIndexOfEquatableElement(Element
) -> Index?? func _customLastIndexOfEquatableElement(Element
) -> Index?? func _failEarlyRangeCheck(Index, bounds: ClosedRange<Index>
) func _failEarlyRangeCheck(Index, bounds: Range<Index>
) func _failEarlyRangeCheck(Range<Index>, bounds: Range<Index>
)