@@ -42,8 +42,8 @@ extension Base64 {
42
42
) throws -> [ UInt8 ] where Buffer. Element == UInt8 {
43
43
let alphabet =
44
44
options. contains ( . base64UrlAlphabet)
45
- ? Base64 . decodeDataUrl
46
- : Base64 . decodeData
45
+ ? Base64 . urlAlphabet
46
+ : Base64 . defaultAlphabet
47
47
48
48
// In Base64 4 encoded bytes, become 3 decoded bytes. We pad to the
49
49
// nearest multiple of three.
@@ -112,7 +112,7 @@ extension Base64 {
112
112
// MARK: Internal
113
113
114
114
@usableFromInline
115
- static let decodeData : [ UInt8 ] = [
115
+ static let defaultAlphabet : [ UInt8 ] = [
116
116
// 0 1 2 3 4 5 6 7 8 9
117
117
255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 0
118
118
255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 1
@@ -143,7 +143,7 @@ extension Base64 {
143
143
]
144
144
145
145
@usableFromInline
146
- static let decodeDataUrl : [ UInt8 ] = [
146
+ static let urlAlphabet : [ UInt8 ] = [
147
147
// 0 1 2 3 4 5 6 7 8 9
148
148
255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 0
149
149
255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , // 1
0 commit comments