We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Span<UInt8>
1 parent 7d99212 commit b5bbd83Copy full SHA for b5bbd83
Sources/JSONParsing/JSON.Object (ext).swift
@@ -9,14 +9,6 @@ extension JSON.Object {
9
public init(parsing json: JSON) throws {
10
self.init(try JSON.NodeRule<Int>.Object.parse(json.utf8))
11
}
12
- /// Attempts to parse a JSON object from a span.
13
- public init(parsing span: Span<UInt8>) throws {
14
- self.init(
15
- try span.withUnsafeBufferPointer { buffer in
16
- try JSON.NodeRule<Int>.Object.parse(buffer)
17
- }
18
- )
19
20
/// Attempts to parse a JSON object from a raw span.
21
public init(parsing span: RawSpan) throws {
22
self.init(
0 commit comments