public static DoubleBuffer wrap(double[] array, int start, int doubleCount) {Arrays.checkOffsetAndCount(array.length, start, doubleCount);DoubleBuffer buf = new ReadWriteDoubleArrayBuffer(array);buf.position = start;buf.limit = start + doubleCount;return buf;}
public static java.nio.DoubleBuffer wrap(double[] array_1, int start, int doubleCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, doubleCount);java.nio.DoubleBuffer buf = new java.nio.ReadWriteDoubleArrayBuffer(array_1);buf._position = start;buf._limit = start + doubleCount;return buf;}