commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
/// An internal protocol used to describe a type that can extract data from a file |
|
14 |
NS_SWIFT_NAME(FileDataExtracting) |
|
15 |
@protocol FBSDKFileDataExtracting |
|
16 |
|
|
17 |
+ (nullable NSData *)dataWithContentsOfFile:(NSString *)path |
|
18 |
options:(NSDataReadingOptions)readOptionsMask |
|
19 |
error:(NSError *_Nullable *)errorPtr; |
|
20 |
|
|
21 |
@end |
|
22 |
|
|
23 |
@interface NSData (FileDataExtracting) <FBSDKFileDataExtracting> |
|
24 |
@end |
|
25 |
|
|
26 |
NS_ASSUME_NONNULL_END |