-
-
Save laevandus/f780c6bcb47df48a7cb212c9702fc591 to your computer and use it in GitHub Desktop.
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
final class FileReader { | |
init(fileURL: URL) | |
/// Opens the I/O channel with random access semantics | |
func open() | |
/// Closes the opened I/O channel | |
func close() | |
/// Reads data at byte range. | |
func read(byteRange: CountableRange<Int>, queue: DispatchQueue = .main, completionHandler: @escaping (DispatchData?) -> Void) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment