WebURL Documentation Beta

Extensions on Slice

Methods

with​Unsafe​Buffer​Pointer(_:​)

@inlinable @inline(__always)
public func withUnsafeBufferPointer<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R 

Invokes body with a pointer to the contiguous UTF-8 code-units of this portion of the serialized URL string.

Parameters

body (Unsafe​Buffer​Pointer<UInt8>) throws -> R

A closure which processes the content of the serialized URL.