-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop converting values to base64 for Darwin storage. (#18404)
* Stop converting values to base64 for Darwin storage. We can just store NSData directly. * Address review comments. * Address review comments about API naming.
- Loading branch information
1 parent
30a26a2
commit 2543884
Showing
9 changed files
with
113 additions
and
160 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
examples/chip-tool-darwin/commands/common/CHIPCommandStorageDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#import <CHIP/CHIP.h> | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface CHIPToolPersistentStorageDelegate : NSObject <CHIPPersistentStorageDelegate> | ||
- (NSString *)CHIPGetKeyValue:(NSString *)key; | ||
- (void)CHIPSetKeyValue:(NSString *)key value:(NSString *)value; | ||
- (void)CHIPDeleteKeyValue:(NSString *)key; | ||
- (nullable NSData *)storageDataForKey:(NSString *)key; | ||
- (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key; | ||
- (BOOL)removeStorageDataForKey:(NSString *)key; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.