Пример #1
0
        internal static WebFileScheme ReadScheme(Stream stream, string filePath)
        {
            WebFileScheme scheme = new WebFileScheme(filePath);

            scheme.ReadScheme(stream);
            return(scheme);
        }
Пример #2
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);
        }
Пример #3
0
        internal static WebFileScheme ReadScheme(byte[] buffer, string filePath)
        {
            WebFileScheme scheme = new WebFileScheme(filePath);

            using (MemoryStream stream = new MemoryStream(buffer, 0, buffer.Length, false))
            {
                scheme.ReadScheme(stream);
            }
            return(scheme);
        }
Пример #4
0
 public static WebFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName)
 {
     return(WebFileScheme.ReadScheme(stream, offset, size, filePath, fileName));
 }
 public static WebFileScheme ReadScheme(SmartStream stream, string filePath)
 {
     return(WebFileScheme.ReadScheme(stream, filePath));
 }
 public static WebFileScheme ReadScheme(byte[] buffer, string filePath)
 {
     return(WebFileScheme.ReadScheme(buffer, filePath));
 }