Here you can find the source of arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length)
public static void arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length)
//package com.java2s; public class Main { public static void arraycopy(String src, int srcOffset, byte[] dst, int dstOffset, int length) { if (src == null || dst == null) { throw new NullPointerException("invalid byte array "); }/*from w w w. ja v a2s . com*/ if ((src.length() < (srcOffset + length)) || (dst.length < (dstOffset + length))) { throw new IndexOutOfBoundsException("invalid length: " + length); } for (int i = 0; i < length; i++) { dst[dstOffset + i] = (byte) src.charAt(srcOffset + i); } } }