public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final byte[] input, final int end) { final int arrayOffs = parsingState.arrayOffset; final int offset = arrayOffs + parsingState.offset; final int avail = Math.min(parsingState.packetLimit + arrayOffs, end) - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available b1 = input[offset]; b2 = input[offset + 1]; } else if (avail == 1) { // if one byte available b1 = input[offset]; b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }
public static int checkEOL(final HttpCodecFilter.HeaderParsingState parsingState, final Buffer input) { final int offset = parsingState.offset; final int avail = input.limit() - offset; final byte b1; final byte b2; if (avail >= 2) { // if more than 2 bytes available final short s = input.getShort(offset); b1 = (byte) (s >>> 8); b2 = (byte) (s & 0xFF); } else if (avail == 1) { // if one byte available b1 = input.get(offset); b2 = -1; } else { return -2; } return checkCRLF(parsingState, b1, b2); }