-
Declaration
Swift
public let length: Int
-
Declaration
Swift
public var count: Int
-
Declaration
Swift
public let bytes: BytePointer
-
Declaration
Swift
public init(length: Int)
-
Declaration
Swift
public init?(buffer: UnsafeRawBufferPointer)
-
Declaration
Swift
@discardableResult open func append(byte: UInt8) -> Int?
-
Declaration
Swift
@discardableResult open func append<S>(contentsOf: S) -> Int where S : Sequence, S.Element == UInt8
-
Declaration
Swift
@discardableResult open func relocateToFront(start idx: Int) -> Int
-
Declaration
Swift
open func relocateToFront(start idx: Int, count cc: Int)
-
Declaration
Swift
@discardableResult open func withBytes<V>(_ body: (BytePointer, Int, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBytes<V>(_ body: (UnsafeMutableBufferPointer<UInt8>, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBytes<V>(_ body: (ByteROPointer, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBytes<V>(_ body: (UnsafeBufferPointer<UInt8>, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBufferAs<T, V>(type: T.Type, _ body: (UnsafeBufferPointer<T>, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBufferAs<T, V>(type: T.Type, _ body: (UnsafePointer<T>, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBufferAs<T, V>(type: T.Type, _ body: (UnsafeMutablePointer<T>, Int, inout Int) throws -> V) rethrows -> V
-
Declaration
Swift
@discardableResult open func withBufferAs<T, V>(type: T.Type, _ body: (UnsafeMutableBufferPointer<T>, inout Int) throws -> V) rethrows -> V