You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/BizHawk.Client.Common/Api/Classes/MemoryApi.cs
+68Lines changed: 68 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -284,6 +284,74 @@ public void WriteByteRange(long addr, IReadOnlyList<byte> memoryblock, string do
284
284
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted writes on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(WriteByteRange)}()");
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted reads on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(ReadByteRange)}()");
298
+
if(values.Length==count)returnvalues;
299
+
varnewValues=newushort[count];
300
+
if(values.Lengthis not 0)Array.Copy(sourceArray:values,sourceIndex:0,destinationArray:newValues,destinationIndex:iDst,length:values.Length);
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted writes on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(WriteByteRange)}()");
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted reads on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(ReadByteRange)}()");
332
+
if(values.Length==count)returnvalues;
333
+
varnewValues=newuint[count];
334
+
if(values.Lengthis not 0)Array.Copy(sourceArray:values,sourceIndex:0,destinationArray:newValues,destinationIndex:iDst,length:values.Length);
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted writes on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(WriteByteRange)}()");
0 commit comments