File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,16 @@ extension __StringStorage {
228
228
}
229
229
return nil
230
230
}
231
+
232
+ @objc ( _fastUTF8StringContents: utf8Length: )
233
+ @_effects ( readonly)
234
+ final internal func _fastUTF8StringContents(
235
+ _ requiresNulTermination: Int8 ,
236
+ _ outUTF8Length: UnsafeMutablePointer < UInt >
237
+ ) -> UnsafePointer < UInt8 > ? {
238
+ outUTF8Length. pointee = UInt ( count)
239
+ return unsafe start
240
+ }
231
241
232
242
@objc ( UTF8String)
233
243
@_effects ( readonly)
@@ -346,6 +356,16 @@ extension __SharedStringStorage {
346
356
}
347
357
return nil
348
358
}
359
+
360
+ @objc ( _fastUTF8StringContents: utf8Length: )
361
+ @_effects ( readonly)
362
+ final internal func _fastUTF8StringContents(
363
+ _ requiresNulTermination: Int8 ,
364
+ _ outUTF8Length: UnsafeMutablePointer < UInt >
365
+ ) -> UnsafePointer < UInt8 > ? {
366
+ outUTF8Length. pointee = UInt ( count)
367
+ return unsafe start
368
+ }
349
369
350
370
@objc ( UTF8String)
351
371
@_effects ( readonly)
You can’t perform that action at this time.
0 commit comments