Tabnine Logo
System.arraycopyCheckBounds
Code IndexAdd Tabnine to your IDE (free)

How to use
arraycopyCheckBounds
method
in
java.lang.System

Best Java code snippets using java.lang.System.arraycopyCheckBounds (Showing top 20 results out of 315)

origin: robovm/robovm

private static void arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
origin: robovm/robovm

private static void arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
origin: robovm/robovm

private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
origin: robovm/robovm

private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
origin: robovm/robovm

private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}

origin: robovm/robovm

private static void arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
origin: robovm/robovm

private static void arraycopy(short[] src, int srcPos, short[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
origin: robovm/robovm

private static void arraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
origin: robovm/robovm

private static void arraycopy(Object[] src, int srcPos, Object[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  if (length > 0) {
    // TODO: Use arraycopyFast() if src.class and dst.class have same dimensionality and (src instanceof dst)
    int i = 0;
    try {
      // Check if this is a forward or backwards arraycopy
      if (src != dst || srcPos > dstPos || srcPos + length <= dstPos) {
        for (i = 0; i < length; ++i) {
          dst[dstPos + i] = src[srcPos + i];
        }
      } else {
        for (i = length - 1; i >= 0; --i) {
          dst[dstPos + i] = src[srcPos + i];
        }
      }
    } catch (ArrayStoreException e) {
      // Throw a new one with a more descriptive message.
      Class<?> srcElemClass = src[i + srcPos].getClass();
      String srcElemTypeName = srcElemClass.isArray() 
                  ? srcElemClass.getCanonicalName() : srcElemClass.getName();
      throw new ArrayStoreException(String.format(
          "source[%d] of type %s cannot be stored in destination array of type %s",
          i + srcPos, srcElemTypeName, dst.getClass().getCanonicalName()));
    }
  }
}
origin: MobiVM/robovm

private static void arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
origin: MobiVM/robovm

private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
origin: MobiVM/robovm

private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
origin: MobiVM/robovm

private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}

origin: ibinti/bugvm

private static void arraycopy(boolean[] src, int srcPos, boolean[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 0);
}
origin: ibinti/bugvm

private static void arraycopy(double[] src, int srcPos, double[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
origin: ibinti/bugvm

private static void arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 3);
}
origin: com.mobidevelop.robovm/robovm-rt

private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
origin: com.mobidevelop.robovm/robovm-rt

private static void arraycopy(float[] src, int srcPos, float[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}

origin: com.bugvm/bugvm-rt

private static void arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 2);
}
origin: com.bugvm/bugvm-rt

private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) {
  arraycopyCheckBounds(src.length, srcPos, dst.length, dstPos, length);
  arraycopyFast(src, srcPos, dst, dstPos, length, 1);
}
java.langSystemarraycopyCheckBounds

Popular methods of System

  • currentTimeMillis
    Returns the current time in milliseconds. Note that while the unit of time of the return value is a
  • getProperty
    Returns the value of a particular system property. The defaultValue will be returned if no such prop
  • arraycopy
  • exit
  • setProperty
    Sets the value of a particular system property.
  • nanoTime
    Returns the current timestamp of the most precise timer available on the local system, in nanosecond
  • getenv
    Returns the value of the environment variable with the given name, or null if no such variable exist
  • getProperties
    Returns the system properties. Note that this is not a copy, so that changes made to the returned Pr
  • identityHashCode
    Returns an integer hash code for the parameter. The hash code returned is the same one that would be
  • getSecurityManager
    Gets the system security interface.
  • gc
    Indicates to the VM that it would be a good time to run the garbage collector. Note that this is a h
  • lineSeparator
    Returns the system's line separator. On Android, this is "\n". The value comes from the value of the
  • gc,
  • lineSeparator,
  • clearProperty,
  • setOut,
  • setErr,
  • console,
  • loadLibrary,
  • load,
  • setSecurityManager,
  • mapLibraryName

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now