static int indexOf_byteArray(byte[] a, byte b) { int n = l(a); for i to n: if (a[i] == b) ret i; ret -1; }