@@ -337,7 +337,7 @@ extension Base64 {
337
337
338
338
if let result = bytes. withContiguousStorageIfAvailable ( { input -> [ UInt8 ] in
339
339
[ UInt8] ( unsafeUninitializedCapacity: newCapacity) { buffer, length in
340
- Self . _encodeChromium ( input: input, buffer: buffer, length: & length, options: options)
340
+ Self . _encode ( input: input, buffer: buffer, length: & length, options: options)
341
341
}
342
342
} ) {
343
343
return result
@@ -355,7 +355,7 @@ extension Base64 {
355
355
if let result = bytes. withContiguousStorageIfAvailable ( { input -> String in
356
356
String ( unsafeUninitializedCapacity: newCapacity) { buffer -> Int in
357
357
var length = newCapacity
358
- Self . _encodeChromium ( input: input, buffer: buffer, length: & length, options: options)
358
+ Self . _encode ( input: input, buffer: buffer, length: & length, options: options)
359
359
return length
360
360
}
361
361
} ) {
@@ -379,7 +379,7 @@ extension Base64 {
379
379
_ = data. withUnsafeMutableBytes { rawBuffer in
380
380
rawBuffer. withMemoryRebound ( to: UInt8 . self) { buffer in
381
381
var length = newCapacity
382
- Self . _encodeChromium ( input: input, buffer: buffer, length: & length, options: options)
382
+ Self . _encode ( input: input, buffer: buffer, length: & length, options: options)
383
383
return length
384
384
}
385
385
}
@@ -392,9 +392,9 @@ extension Base64 {
392
392
}
393
393
394
394
@usableFromInline
395
- static func _encodeChromium ( input: UnsafeBufferPointer < UInt8 > , buffer: UnsafeMutableBufferPointer < UInt8 > , length: inout Int , options: Data . Base64EncodingOptions ) {
395
+ static func _encode ( input: UnsafeBufferPointer < UInt8 > , buffer: UnsafeMutableBufferPointer < UInt8 > , length: inout Int , options: Data . Base64EncodingOptions ) {
396
396
if options. contains ( . lineLength64Characters) || options. contains ( . lineLength76Characters) {
397
- return self . _encodeChromiumWithLineBreaks ( input: input, buffer: buffer, length: & length, options: options)
397
+ return self . _encodeWithLineBreaks ( input: input, buffer: buffer, length: & length, options: options)
398
398
}
399
399
400
400
let omitPaddingCharacter = false // options.contains(.omitPaddingCharacter)
@@ -450,7 +450,7 @@ extension Base64 {
450
450
}
451
451
}
452
452
453
- static func _encodeChromiumWithLineBreaks (
453
+ static func _encodeWithLineBreaks (
454
454
input: UnsafeBufferPointer < UInt8 > ,
455
455
buffer: UnsafeMutableBufferPointer < UInt8 > ,
456
456
length: inout Int ,
0 commit comments