public StoreOperationScavenge(bool Light, ulong SizeLimit, ulong RunLimit, uint ComponentLimit)
{
this.Size = (uint) Marshal.SizeOf(typeof(StoreOperationScavenge));
this.Flags = OpFlags.Nothing;
if (Light)
{
this.Flags |= OpFlags.Light;
}
this.SizeReclaimationLimit = SizeLimit;
if (SizeLimit != 0L)
{
this.Flags |= OpFlags.LimitSize;
}
this.RuntimeLimit = RunLimit;
if (RunLimit != 0L)
{
this.Flags |= OpFlags.LimitTime;
}
this.ComponentCountLimit = ComponentLimit;
if (ComponentLimit != 0)
{
this.Flags |= OpFlags.LimitCount;
}
}