Skip to content

Commit

Permalink
Fix Xcode 14 withUnsafeBytes call
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Renella committed Oct 19, 2022
1 parent 993e678 commit a3eb75e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased](https://github.com/openium/SwiftiumKit/compare/2.1.0...HEAD)
### Added
replaceOccurences on String

### Changed

### Removed

## [2.1.1](https://github.com/openium/SwiftiumKit/compare/2.1.0...2.1.0)
### Added

### Changed
- Fix withUnsafeBytes using Xcode 14

### Removed

## [2.1.0](https://github.com/openium/SwiftiumKit/compare/2.1.0...2.0.0)
### Added
replaceOccurences on String
Expand All @@ -21,26 +28,26 @@ replaceOccurences on String

## [2.0.0](https://github.com/openium/SwiftiumKit/compare/2.0.0...1.7.0)
### Added
SPM Support
- SPM Support

### Changed

### Removed
Carthage support
- Carthage support

## [1.7.0](https://github.com/openium/SwiftiumKit/compare/v1.7.0...1.6.0) - 2020-01-07
### Added

### Changed
Remove objc code to prepare SPM support (2.0)
- Remove objc code to prepare SPM support (2.0)

### Removed
force push of tag latest
- Force push of tag latest

## [1.6.0](https://github.com/openium/SwiftiumKit/compare/v1.5.0...v1.6.0) - 2019-11-06
### Added
String extension to validate an email address
Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability
- String extension to validate an email address
- Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability

### Changed

Expand Down Expand Up @@ -74,10 +81,8 @@ Setted BUILD_LIBRARY_FOR_DISTRIBUTION to YES to get module stability
- Add addition operators on Dictionaries.

### Changed
nothing

### Removed
nothing

## [1.2.0] (https://github.com/openium/SwiftiumKit/compare/v1.1.1...v1.2.0)- 2016-10-19
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private typealias SKCryptOperationFunction = (Data, String) -> Data?
func sk_crypto_operate(operation: CCOperation, keySize: Int, data: Data, keyData: Data) -> Data? {
let keyBytes = UnsafeMutablePointer<UInt8>.allocate(capacity: keySize)
keyBytes.initialize(to: 0)
keyData.withUnsafeBytes { (bytes) in
keyData.withUnsafeBytes { (bytes: UnsafeRawBufferPointer) in
for index in 0..<min(keySize, keyData.count) {
keyBytes[index] = bytes[index]
}
Expand Down

0 comments on commit a3eb75e

Please sign in to comment.