mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
There were a few logs related to bad memory access within libSession and the `toLibSession` convention which we'd originally setup made me nervous as C-friendly objects would be allocated in Swift and then assigned to C struct properties but I'm not sure how the memory would actually behave in this case. This updated approach unfortunately involves a bunch of duplicate code within 'TypeConversion+Utilities' (and some horrible type aliases for tuples) but as a result we now have compile-time safe 'get' and 'set' functions for any C struct which conforms to `CAccessible` and `CMutable`. The other nice benefit about this change is that the new `set` functions copy memory across into the C structs so we can have more confidence that the memory ownership has shifted to the libSession side of things. |
1 year ago | |
|---|---|---|
| .. | ||
| ARC4RandomNumberGenerator.swift | 3 years ago | |
| BackgroundTaskManager.swift | 1 year ago | |
| Bencode.swift | 1 year ago | |
| BencodeDecoder.swift | 1 year ago | |
| BencodeEncoder.swift | 1 year ago | |
| BencodeResponse.swift | 1 year ago | |
| CGFloat+Utilities.swift | 1 year ago | |
| CGPoint+Utilities.swift | 1 year ago | |
| CGRect+Utilities.swift | 1 year ago | |
| CGSize+Utilities.swift | 1 year ago | |
| Codable+Utilities.swift | ||
| DifferenceKit+Utilities.swift | 2 years ago | |
| DispatchQueue+Utilities.swift | 2 years ago | |
| Failable.swift | ||
| FileManagerType.swift | 1 year ago | |
| JSONDecoder+Utilities.swift | 2 years ago | |
| JSONEncoder+Utilities.swift | 2 years ago | |
| KeychainStorageType.swift | 1 year ago | |
| MutableIdentifiable.swift | 1 year ago | |
| NSAttributedString+Utilities.swift | 2 years ago | |
| Notification+Utilities.swift | ||
| Optional+Utilities.swift | 3 years ago | |
| Randomness.swift | 3 years ago | |
| Result+Utilities.swift | 2 years ago | |
| Threading.swift | 1 year ago | |
| TimeUnit.swift | 1 year ago | |
| UIAlertAction+Utilities.swift | 1 year ago | |
| UIApplicationState+Utilities.swift | 2 years ago | |
| UIBezierPath+Utilities.swift | 1 year ago | |
| UIImage+Utilities.swift | 1 year ago | |
| UINavigationController+Utilities.swift | 1 year ago | |
| Version.swift | 2 years ago | |