public static final int prevLF(byte[] b, int ptr, char chrA) {if (ptr == b.length)--ptr;while (ptr >= 0) {final byte c = b[ptr--];if (c == chrA || c == '\n')return ptr;}return ptr;}
public static int PrevLF(byte[] b, int ptr, char chrA){if (ptr == b.Length){--ptr;}while (ptr >= 0){byte c = b[ptr--];if (c == chrA || c == '\n'){return ptr;}}return ptr;}