internal static ArchiveFileScheme ReadScheme(Stream stream, string filePath, string fileName)
        {
            ArchiveFileScheme scheme = new ArchiveFileScheme(filePath, fileName);

            scheme.ReadScheme(stream);
            return(scheme);
        }
Пример #2
0
        internal static ArchiveFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName)
        {
            ArchiveFileScheme scheme = new ArchiveFileScheme(stream, offset, size, filePath, fileName);

            scheme.ReadScheme();
            scheme.ProcessEntry();
            return(scheme);
        }
        internal static ArchiveFileScheme ReadScheme(byte[] buffer, string filePath, string fileName)
        {
            ArchiveFileScheme scheme = new ArchiveFileScheme(filePath, fileName);

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