Split main project into core,graphics and chocolarm4 subproject (#29)
This commit is contained in:
parent
cb665bb715
commit
62b827f474
257 changed files with 415 additions and 285 deletions
38
Ryujinx.Core/OsHle/Utilities/MemWriter.cs
Normal file
38
Ryujinx.Core/OsHle/Utilities/MemWriter.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using ChocolArm64.Memory;
|
||||
|
||||
namespace Ryujinx.Core.OsHle.Utilities
|
||||
{
|
||||
class MemWriter
|
||||
{
|
||||
private AMemory Memory;
|
||||
|
||||
public long Position { get; private set; }
|
||||
|
||||
public MemWriter(AMemory Memory, long Position)
|
||||
{
|
||||
this.Memory = Memory;
|
||||
this.Position = Position;
|
||||
}
|
||||
|
||||
public void WriteByte(byte Value)
|
||||
{
|
||||
Memory.WriteByte(Position, Value);
|
||||
|
||||
Position++;
|
||||
}
|
||||
|
||||
public void WriteInt32(int Value)
|
||||
{
|
||||
Memory.WriteInt32(Position, Value);
|
||||
|
||||
Position += 4;
|
||||
}
|
||||
|
||||
public void WriteInt64(long Value)
|
||||
{
|
||||
Memory.WriteInt64(Position, Value);
|
||||
|
||||
Position += 8;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue