コード例 #1
0
ファイル: Ram.cs プロジェクト: TheJP/stebs
 public static RamSession CreateSession(Ram ram)
 {
     Monitor.Enter(ram.writeLock);
     return new RamSession(ram);
 }
コード例 #2
0
ファイル: ProcessorTestUtility.cs プロジェクト: TheJP/stebs
 /// <summary>Asserts, that the given expected RAM is equal to the actual RAM.</summary>
 /// <param name="expected"></param>
 public void AssertRamEquals(byte[] expected)
 {
     using (var ram = new Ram().CreateSession())
     {
         ram.Set(AssureLength(expected));
         Helper.DictionaryEqual(ram.Ram.Data, Processor.Ram.Data);
     }
 }
コード例 #3
0
ファイル: Ram.cs プロジェクト: TheJP/stebs
 private RamSession(Ram ram)
 {
     this.Ram = ram;
 }