private sceKernelVolatileMemLock ( int Type, uint &OutAddress, int &OutSize ) : int | ||
Type | int | |
OutAddress | uint | |
OutSize | int | |
Результат | int |
public int sceKernelVolatileMemLock(int Type, out uint OutAddress, out int OutSize)
{
if (Type != 0)
{
throw(new SceKernelException(SceKernelErrors.ERROR_INVALID_ARGUMENT));
}
if (VolatileMemLocked)
{
throw(new SceKernelException(SceKernelErrors.ERROR_POWER_VMEM_IN_USE));
}
var Partition = MemoryManager.GetPartition(MemoryPartitions.VolatilePartition);
OutAddress = Partition.Low;
OutSize = Partition.Size; // 4 MB
VolatileMemLocked = true;
return 0;
}