Пример #1
0
 /// <inheritdoc/>
 public LinearMemory ImportMemory(ImportedMemory Description)
 {
     if (Description.FieldName == "memory")
     {
         return(new LinearMemory(new ResizableLimits(1, 2)));
     }
     else
     {
         return(null);
     }
 }
Пример #2
0
 /// <inheritdoc/>
 public LinearMemory ImportMemory(ImportedMemory description)
 {
     if (moduleImporters.TryGetValue(description.ModuleName, out IImporter importer))
     {
         return(importer.ImportMemory(description));
     }
     else
     {
         return(null);
     }
 }
Пример #3
0
 /// <inheritdoc/>
 public LinearMemory ImportMemory(ImportedMemory description)
 {
     if (Module.ExportedMemories.TryGetValue(description.FieldName, out LinearMemory result) &&
         result.Limits.Initial >= description.Memory.Limits.Initial)
     {
         return(result);
     }
     else
     {
         return(null);
     }
 }
Пример #4
0
 /// <inheritdoc/>
 public LinearMemory ImportMemory(ImportedMemory Description)
 {
     return(ImportOrDefault <LinearMemory>(Description, memDefDict));
 }