public void SetValueByArea(ulong aValue, TDebugMaskArea aArea) { switch (aArea) { default: case TDebugMaskArea.EAreaKernelDebug: DebugMaskKernel = (TDebugMaskKernel)aValue; break; case TDebugMaskArea.EAreaKernelConfig: DebugMaskKernelConfig = (TDebugMaskKernelConfig)aValue; break; case TDebugMaskArea.EAreaFileSystem: iDebugMaskFileSystem = aValue; break; case TDebugMaskArea.EAreaLicensee: iDebugMaskReservedForLicensees = aValue; break; } }
public void SetValueByWordIndex(ulong aValue, int aWord) { uint areaByte = ((byte)aWord) * 32u; TDebugMaskArea area = TDebugMaskArea.EAreaKernelDebug; if (areaByte < (byte)TDebugMaskArea.EAreaKernelDebug) { area = TDebugMaskArea.EAreaKernelDebug; } else if (areaByte < (byte)TDebugMaskArea.EAreaKernelConfig) { area = TDebugMaskArea.EAreaKernelConfig; } else if (areaByte < (byte)TDebugMaskArea.EAreaFileSystem) { area = TDebugMaskArea.EAreaFileSystem; } else if (areaByte < (byte)TDebugMaskArea.EAreaLicensee) { area = TDebugMaskArea.EAreaLicensee; } SetValueByArea(aValue, area); }