GBA001/Pods/SwiftyDropbox/Source/SwiftyDropbox/Shared/Handwritten/DBChunkInputStream.h
Riley Testut 6cca0f244f Replaces frameworks with static libraries
As of iOS 13.3.1, apps installed with free developer accounts that contain embedded frameworks fail to launch. To work around this, we now link all dependencies via Cocoapods as static libraries.
2020-02-03 19:28:23 -08:00

32 lines
970 B
Objective-C
Executable File

///
/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.
/// Copyright (c) 2011 BJ Homer. All rights reserved.
///
/// Based on example from @bjhomer https://github.com/bjhomer/HSCountingInputStream
///
#import <Foundation/Foundation.h>
///
/// Subclass of `NSInputStream` to enforce "bounds" on file stream, for
/// chunk uploading.
///
@interface DBChunkInputStream : NSInputStream <NSStreamDelegate>
///
/// DBChunkInputStream full constructor.
///
/// @param fileUrl The file to stream.
/// @param startBytes The starting position of the file stream, relative
/// to the beginning of the file.
/// @param endBytes The ending position of the file stream, relative
/// to the beginning of the file.
///
/// @return An initialized DBChunkInputStream instance.
///
- (nonnull instancetype)initWithFileUrl:(NSURL * _Nonnull)fileUrl
startBytes:(NSUInteger)startBytes
endBytes:(NSUInteger)endBytes;
@end