Differences From Artifact [5deb9cb9cd]:
- File
src/OFSecureData.h
— part of check-in
[6ce0093f8d]
at
2023-04-10 19:22:32
on branch trunk
— Remove OFSerialization
While the idea sounds nice that the tag name is the class, this means the
serialization includes whether something is mutable or immutable. This means
doing as much as making something immutable changes the serialization, which
can then cause issues after being deserialized. (user: js, size: 6820) [annotate] [blame] [check-ins using] [more...]
To Artifact [37557f6a68]:
- File src/OFSecureData.h — part of check-in [91fa20d993] at 2023-08-07 18:20:48 on branch trunk — Make OFData a class cluster (user: js, size: 7000) [annotate] [blame] [check-ins using] [more...]
︙ | |||
28 29 30 31 32 33 34 35 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | + + + - | * deallocated. Check the @ref allowsSwappableMemory property to see * whether a particular OFSecureData might be allocated in swappable * memory. */ OF_SUBCLASSING_RESTRICTED @interface OFSecureData: OFData { unsigned char *_Nullable _items; size_t _count, _itemSize; bool _freeWhenDone, _allowsSwappableMemory; void *_page; |
︙ | |||
131 132 133 134 135 136 137 138 139 140 141 142 143 144 | 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | + + | * @return An initialized OFSecureData */ - (instancetype)initWithCount: (size_t)count itemSize: (size_t)itemSize allowsSwappableMemory: (bool)allowsSwappableMemory OF_DESIGNATED_INITIALIZER; - (instancetype)init OF_UNAVAILABLE; - (instancetype)initWithItemSize: (size_t)itemSize OF_UNAVAILABLE; - (instancetype)initWithItems: (const void *)items count: (size_t)count OF_UNAVAILABLE; - (instancetype)initWithItems: (const void *)items count: (size_t)count itemSize: (size_t)itemSize OF_UNAVAILABLE; - (instancetype)initWithItemsNoCopy: (void *)items count: (size_t)count |
︙ |