Files
youle_app_ios/msext/QiniuSDK/Common/QNFileDelegate.h
2023-12-27 20:38:37 +08:00

62 lines
841 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// QNFileDelegate.h
// QiniuSDK
//
// Created by bailong on 15/7/25.
// Copyright (c) 2015年 Qiniu. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* 文件处理接口支持ALAsset, NSFileHandle, NSData
*/
@protocol QNFileDelegate <NSObject>
/**
* 从指定偏移读取数据
*
* @param offset 偏移地址
* @param size 大小
*
* @return 数据
*/
- (NSData *)read:(long)offset
size:(long)size;
/**
* 读取所有文件内容
*
* @return 数据
*/
- (NSData *)readAll;
/**
* 关闭文件
*
*/
- (void)close;
/**
* 文件路径
*
* @return 文件路径
*/
- (NSString *)path;
/**
* 文件修改时间
*
* @return 修改时间
*/
- (int64_t)modifyTime;
/**
* 文件大小
*
* @return 文件大小
*/
- (int64_t)size;
@end