copy Bytes Into Byte Array Up To Length - Android File Input Output

Android examples for File Input Output:Byte Array Copy

Description

copy Bytes Into Byte Array Up To Length

Demo Code


//package com.java2s;

public class Main {
    public static void copyBytesIntoByteArrayUpToLength(byte[] dest,
            byte[] src, int offset) {
        for (int i = 0; i < offset; i++) {
            dest[i] = src[i];//from ww w . ja  v  a2  s. c  o m
        }
    }
}

Related Tutorials