示例#1
0
        internal static WebFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName)
        {
            WebFileScheme scheme = new WebFileScheme(stream, offset, size, filePath, fileName);

            scheme.ReadScheme();
            scheme.ProcessEntries();
            return(scheme);
        }
示例#2
0
        internal WebFile(IFileCollection collection, WebFileScheme scheme)
        {
            if (scheme == null)
            {
                throw new ArgumentNullException(nameof(scheme));
            }

            Header   = scheme.Header;
            Metadata = scheme.Metadata;
        }
示例#3
0
 public static WebFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName)
 {
     return(WebFileScheme.ReadScheme(stream, offset, size, filePath, fileName));
 }