Exemple #1
0
        internal static SerializedFileScheme ReadSceme(SmartStream stream, long offset, long size, string filePath, string fileName, TransferInstructionFlags flags)
        {
            SerializedFileScheme scheme = new SerializedFileScheme(stream, offset, size, filePath, fileName, flags);

            scheme.ReadScheme();
            return(scheme);
        }
        internal SerializedFile(IFileCollection collection, IAssemblyManager manager, SerializedFileScheme scheme)
        {
            if (scheme == null)
            {
                throw new ArgumentNullException(nameof(scheme));
            }
#warning TODO:
        }
Exemple #3
0
        internal SerializedFile(IFileCollection collection, IAssemblyManager manager, SerializedFileScheme scheme)
        {
            if (collection == null)
            {
                throw new ArgumentNullException(nameof(collection));
            }
            if (manager == null)
            {
                throw new ArgumentNullException(nameof(manager));
            }
            if (scheme == null)
            {
                throw new ArgumentNullException(nameof(scheme));
            }

            Collection      = collection;
            AssemblyManager = manager;
            FilePath        = scheme.FilePath;
            NameOrigin      = scheme.Name;
            Name            = FilenameUtils.FixFileIdentifier(scheme.Name);
            Flags           = scheme.Flags;

            Header   = scheme.Header;
            Metadata = scheme.Metadata;
        }
Exemple #4
0
 public static SerializedFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName)
 {
     return(SerializedFileScheme.ReadSceme(stream, offset, size, filePath, fileName));
 }
Exemple #5
0
 public static SerializedFileScheme ReadScheme(SmartStream stream, long offset, long size, string filePath, string fileName, TransferInstructionFlags flags)
 {
     return(SerializedFileScheme.ReadSceme(stream, offset, size, filePath, fileName, flags));
 }