public GetTopException(Size size) : base("GetTop failed for size = " + size.Dump()) {}
public BitsConst Divide(BitsConst right, Size size) { if(!(Marshal.SizeOf(typeof(long)) * 8 >= size.ToInt())) Tracer.AssertionFailed ( @"sizeof(Int64)*8 >= size.ToInt()", () => "right=" + right + ";size=" + size.Dump()); return Convert(ToInt64() / right.ToInt64()).Resize(size); }
public PullException(Size size) : base("Pull failed for size = " + size.Dump()) { }
public BitsConst ShiftDown(Size size) { Tracer.Assert (SlagBits(Size).IsZero, () => "Size of object is not byte aligned: " + Dump()); Tracer.Assert (SlagBits(size).IsZero, () => "Target size is not byte aligned: " + size.Dump()); var bytes = size.ByteCount; return Convert(_data.Length - bytes, _data, bytes); }