Here you can find the source of memcmp(List
static int memcmp(List<Byte> header, String string, int size)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { static int memcmp(List<Byte> header, String string, int size) { for (int i = 0; i < size; i++) { if (header.get(i) != (byte) string.charAt(i)) return 1; }// ww w.java 2 s . c om return 0; } }