PS4API PS4 = new PS4API();
PS4.ConnectTarget("192.168.0.0");
PS4.DisconnectTarget();
PS4.AttachProcess();
PS4.DetachProcess();
PS4.Notify(222, "Hello World!");
PS4.SetMemory(0x0000000000000000, new byte[]{0x00,0x00});
byte[] buffer = PS4.GetBytes(0x0000000000000000, ;
Int16 var16 = PS4.Extension.ReadInt16(0x000000000);
Int32 var32 = PS4.Extension.ReadInt32(0x000000000);
Int64 var64 = PS4.Extension.ReadInt64(0x000000000);
UInt16 var16 = PS4.Extension.ReadUInt16(0x000000000);
UInt32 var32 = PS4.Extension.ReadUInt32(0x000000000);
UInt64 var64 = PS4.Extension.ReadUInt64(0x000000000);
float varFloat = PS4.Extension.ReadFloat(0x000000000);
float[] varFloats = PS4.Extension.ReadFloats(0x000000000, 3);
double vardouble = PS4.Extension.ReadDouble(0x000000000);
string varstring = PS4.Extension.ReadString(0x000000000);
PS4.Extension.WriteInt16(0x000000000, 0x1122);
PS4.Extension.WriteInt32(0x000000000, 0x11223344);
PS4.Extension.WriteInt64(0x000000000, 0x112233445566778;
PS4.Extension.WriteUInt16(0x000000000, 0x1122);
PS4.Extension.WriteUInt32(0x000000000, 0x11223344);
PS4.Extension.WriteUInt64(0x000000000, 0x112233445566778;
PS4.Extension.WriteFloat(0x000000000, 1.25f);
PS4.Extension.WriteFloats(0x000000000, new float[]{1.0f, 2.0f, 3.0f});
PS4.Extension.WriteDouble(0x000000000, 1.7E+3);
PS4.Extension.WriteString(0x000000000, "Hello World!");
int chunkSize = 512;
byte[] buffer = new byte[1024]; //1024 > chunkSize
int loop = (int)Math.Ceiling((decimal)buffer.Length / chunkSize);
ulong offset = 0x2255; //example of offset/address
for (int i = 0; i < loop; i++)
{
int start = (i * chunkSize);
byte[] chunkToWrite = buffer.Skip(start).Take(chunkSize).ToArray();
//PS4.Extension.WriteBytes(offset + (ulong)start, chunkToWrite);
// or
//PS4.SetMemory(offset + (ulong)start, chunkToWrite);
}
int chunkSize = 512;
byte[] buffer = new byte[1024]; //1024 > chunkSize
int loop = (int)Math.Ceiling((decimal)buffer.Length / chunkSize);
ulong offset = 0x2255; //example of offset/address
for (int i = 0; i < loop; i++)
{
int start = (i * chunkSize);
byte[] chunkToWrite = buffer.Skip(start).Take(chunkSize).ToArray();
//PS4.Extension.WriteBytes(offset + (ulong)start, chunkToWrite);
// or
//PS4.SetMemory(offset + (ulong)start, chunkToWrite);
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.