public class FileResourceLocator : DisposableObject
Public Class FileResourceLocator
Inherits DisposableObject
type FileResourceLocator =
class
inherit DisposableObject
end
FileResourceLocator(FileResourceInfo) | 根据资源信息,初始化一个仅读的定位器。 |
FileResourceLocator(FileResourceInfo, String, Boolean) | 根据资源信息和保存目录,初始化一个可写入的定位器。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
FileAccess | 文件访问类型。 |
FileResourceInfo | 资源信息。 |
FileStorage | 文件访问存储器。 |
LastActiveTime | 最后活动时间 |
LocatorPath | 定位器指向的实际文件的全名称。 |
Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
Dispose(Boolean) |
处置资源
(重写 DisposableObjectDispose(Boolean)) |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
GetDefaultOrFailFileSection | 获取一个默认状态,或者失败状态的文件片段 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
GetUnfinishedFileSection | 获取没有完成的文件块集合 |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
ReadBytes | 从指定位置读取字节并存储到指定的字节跨度中。 |
ReadFileSection | 按文件块读取。 |
ReloadFileResourceInfo | 重新载入资源信息,并覆盖现有的分块的所有信息。要求资源路径必须一致。 |
ThrowIfDisposed |
判断当前对象是否已经被释放。
如果已经被释放,则抛出ObjectDisposedException异常。
(继承自 DisposableObject。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
TryFinished | 尝试完成该资源。 |
WriteFileSection(FileSectionResult) | 写入文件块 |
WriteFileSection(FileSection, ArraySegmentByte) | 写入文件块 |
ExtensionName | 缓存文件的扩展名。 |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |