Skip to content

Commit

Permalink
Change cbor data decoder method name to play better with swift.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensutbult committed Nov 12, 2024
1 parent 82f32c3 commit 01d804e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ NS_ASSUME_NONNULL_BEGIN
@returns
The object or nil if the object could not be parsed.
*/
+ (nullable id)decodeObjectFromData:(NSData *)data;
+ (nullable id)decodeDataObjectFrom:(NSData *)data;

/*!
@abstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ - (NSData *)dequeueBytes:(NSUInteger)numberOfBytes;

@implementation YKFCBORDecoder

+ (nullable id)decodeObjectFromData:(NSData *)data {
+ (nullable id)decodeDataObjectFrom:(NSData *)data {
NSInputStream *decoderInputStream = [[NSInputStream alloc] initWithData:data];
[decoderInputStream open];
id result = [YKFCBORDecoder decodeObjectFrom:decoderInputStream];
Expand Down

0 comments on commit 01d804e

Please sign in to comment.