Skip to main content

Properties

bytes​

var bytes: ArraySlice<UInt8>

A slice of the name table, until the rewrite replaces it with a name of our own. Deliberately a slice and not a copy — see [parse].

entryOffset​

let entryOffset: Int

Offset of the 16-byte table-directory entry itself.

testInsideDownloadWindow​

nonisolated(unsafe) static var testInsideDownloadWindow: (@Sendable () -> Void)?

Test seam: called inside download, after the destroyed check and before the task is created — i.e. inside the window that used to be open between the two. Lets a test hold the store in that state and assert that a concurrent __destruct cannot get past it.

testProtocolClasses​

nonisolated(unsafe) static var testProtocolClasses: [AnyClass]?

Test seam, same shape and same reason as Network.testProtocolClasses: URLProtocol.registerClass does not reach a URLSession built from a custom configuration, the protocol has to be in config.protocolClasses.