Android Byte Array Cut remove(byte[] data, int place)

Here you can find the source of remove(byte[] data, int place)

Description

remove

Declaration

public static byte[] remove(byte[] data, int place) 

Method Source Code

//package com.java2s;

public class Main {

    public static byte[] remove(byte[] data, int place) {
        int len = data.length;
        byte[] result = new byte[(len - 1)];
        for (int i = 0, j = 0; i < len; i++, j++) {
            if (i == place) {
                i++;//from w w  w.  ja va 2 s. co  m
            }
            if (i >= len) {
                break;
            }
            result[j] = data[i];

        }
        return result;
    }
}

Related

  1. cutBytes(byte[] bytes, int pos, int length)
  2. deleteSpace(byte[] b)
  3. deleteMark(byte[] b)
  4. deleteSpaceLatin(byte[] b)