Ejemplo n.º 1
0
 public static void Copy(AsciiString src, int srcIdx, IByteBuffer dst, int length)
 {
     if (MathUtil.IsOutOfBounds(srcIdx, length, src.Count))
     {
         ThrowHelper.ThrowIndexOutOfRangeException_Src(srcIdx, length, src.Count);
     }
     if (dst == null)
     {
         ThrowHelper.ThrowArgumentNullException_Dst();
     }
     // ReSharper disable once PossibleNullReferenceException
     dst.WriteBytes(src.Array, srcIdx + src.Offset, length);
 }