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. |
7 months ago | |
---|---|---|
.. | ||
CombineExtensions.swift | 2 years ago | |
CommonMockedExtensions.swift | 8 months ago | |
GRDBExtensions.swift | 7 months ago | |
Mock.swift | 9 months ago | |
MockCaches.swift | 2 years ago | |
MockCrypto.swift | 8 months ago | |
MockGeneralCache.swift | 9 months ago | |
MockJobRunner.swift | 9 months ago | |
MockNetwork.swift | 1 year ago | |
MockUserDefaults.swift | 2 years ago | |
Mocked.swift | 9 months ago | |
NimbleExtensions.swift | 8 months ago | |
SynchronousStorage.swift | 9 months ago | |
TestConstants.swift | 3 years ago | |
TestExtensions.swift | 2 years ago |