示例#1
0
 public GetTopException(Size size)
     : base("GetTop failed for size = " + size.Dump()) {}
示例#2
0
 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);
 }
示例#3
0
 public PullException(Size size)
     : base("Pull failed for size = " + size.Dump()) { }
示例#4
0
        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);
        }