Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    public static short hasAEStartIndex(byte[] data) {
        short count = 0;
        for (int i = 0; i < data.length; i++) {
            if (data[i] == (byte) 0xAE) {
                count++;
            }
        }
        Log.e("BMSUtil", "contain the starting index header (count):" + count);
        return count;
    }
}