Skip to content

Commit 9c8f7a3

Browse files
committed
Removed Chromium callout in function name
1 parent 466ff25 commit 9c8f7a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/FoundationEssentials/Data/Data+Base64.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,17 +491,17 @@ extension Base64 {
491491
let target = UnsafeMutableBufferPointer(start: other, count: outputLength)
492492
var length = outputLength
493493
if options.contains(.ignoreUnknownCharacters) {
494-
try Self._decodeChromiumIgnoringErrors(from: inBuffer, into: target, length: &length, options: options)
494+
try Self._decodeIgnoringErrors(from: inBuffer, into: target, length: &length, options: options)
495495
} else {
496496
// for whatever reason I can see this being 10% faster for larger payloads. Maybe better
497497
// branch prediction?
498-
try self._decodeChromium(from: inBuffer, into: target, length: &length, options: options)
498+
try self._decode(from: inBuffer, into: target, length: &length, options: options)
499499
}
500500

501501
return Data(bytesNoCopy: pointer!, count: length, deallocator: .free)
502502
}
503503

504-
static func _decodeChromium(
504+
static func _decode(
505505
from inBuffer: UnsafeBufferPointer<UInt8>,
506506
into outBuffer: UnsafeMutableBufferPointer<UInt8>,
507507
length: inout Int,
@@ -581,7 +581,7 @@ extension Base64 {
581581
}
582582
}
583583

584-
static func _decodeChromiumIgnoringErrors(
584+
static func _decodeIgnoringErrors(
585585
from inBuffer: UnsafeBufferPointer<UInt8>,
586586
into outBuffer: UnsafeMutableBufferPointer<UInt8>,
587587
length: inout Int,

0 commit comments

Comments
 (0)