copy Bytes Into Byte Array At Offset - Android File Input Output

Android examples for File Input Output:Byte Array Copy

Description

copy Bytes Into Byte Array At Offset

Demo Code


//package com.java2s;

public class Main {
    public static void copyBytesIntoByteArrayAtOffset(byte[] dest,
            byte[] src, int offset) {
        for (int i = 0; i < src.length; i++) {
            dest[offset + i] = src[i];/*from www .  j ava  2  s. com*/
        }
    }
}

Related Tutorials