private boolean isLogon(ByteBuffer buffer, int position) { return indexOf(buffer, position, LOGON_PATTERN) != -1;
private boolean isLogon(ByteBuffer buffer) { return indexOf(buffer, buffer.position(), LOGON_PATTERN) != -1;
    private boolean isLogon(ByteBuffer buffer, int position) {        return indexOf(buffer, position, LOGON_PATTERN) != -1;    }