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 is null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.dst);
     }
     // ReSharper disable once PossibleNullReferenceException
     _ = dst.WriteBytes(src.Array, srcIdx + src.Offset, length);
 }