Android Byte Array Sub Array Get getBytes(byte[] data, int offset, int len)

Here you can find the source of getBytes(byte[] data, int offset, int len)

Description

get Bytes

Declaration

public static byte[] getBytes(byte[] data, int offset, int len) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte[] getBytes(byte[] data, int offset, int len) {
        byte[] tmp = new byte[len];
        for (int i = 0; i < len; i++) {
            tmp[i] = data[offset + i];//  w w w  .  j a  v a  2 s  .c om
        }

        return tmp;
    }
}

Related

  1. subByte(byte[] data, int start)
  2. subByte(byte[] data, int start, int end)
  3. subarray(byte[] in, int a, int b)