text: public static int TagMessage(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 48;}while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}if (ptr < sz && b[ptr] == '\n'){return ptr + 1;}return -1;}