File tree Expand file tree Collapse file tree
Sources/FoundationEssentials Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ extension Base64 {
608608
609609 let outputLength = ( ( inBuffer. count + 3 ) / 4 ) * 3
610610
611- let pointer = malloc ( outputLength)
611+ let pointer = __DataStorage . allocate ( outputLength, false )
612612 let other = pointer? . bindMemory ( to: UInt8 . self, capacity: outputLength)
613613 let target = UnsafeMutableBufferPointer ( start: other, count: outputLength)
614614 var length = outputLength
Original file line number Diff line number Diff line change 4848@usableFromInline let memcmp = WASILibc . memcmp
4949#endif
5050
51+ #if !NO_CSHIMS
5152internal import _FoundationCShims
53+ #endif
5254import Builtin
5355
5456#if canImport(Darwin)
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ fileprivate let _pageSize: Int = Int(getpagesize())
4545internal import CoreFoundation_Private
4646#endif
4747
48-
4948package struct Platform {
5049 static var pageSize : Int {
5150 _pageSize
You can’t perform that action at this time.
0 commit comments