ByteBufferView

public struct ByteBufferView : ContiguousCollection, RandomAccessCollection

A read-only view into a portion of a ByteBuffer.

A ByteBufferView is useful whenever a Collection where Element == UInt8 representing a portion of a ByteBuffer is needed.

  • Undocumented

    Declaration

    Swift

    public func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
  • Declaration

    Swift

    public var startIndex: Index { get }
  • Declaration

    Swift

    public var endIndex: Index { get }
  • Declaration

    Swift

    public func index(after i: Index) -> Index