@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
public static int readRawVarint32(ByteBufInputStream is) throws IOException { byte tmp = is.readByte(); if (tmp >= 0) { return tmp; if ((tmp = is.readByte()) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) << 7; if ((tmp = is.readByte()) >= 0) { result |= tmp << 14; } else { result |= (tmp & 0x7f) << 14; if ((tmp = is.readByte()) >= 0) { result |= tmp << 21; } else { result |= (tmp & 0x7f) << 21; result |= (tmp = is.readByte()) << 28; if (tmp < 0) { if (is.readByte() >= 0) { return result;
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
@Override public int readUnsignedByte() throws IOException { return readByte() & 0xff; }
public static int readRawVarint32(ByteBufInputStream is) throws IOException { byte tmp = is.readByte(); if (tmp >= 0) { return tmp; if ((tmp = is.readByte()) >= 0) { result |= tmp << 7; } else { result |= (tmp & 0x7f) << 7; if ((tmp = is.readByte()) >= 0) { result |= tmp << 14; } else { result |= (tmp & 0x7f) << 14; if ((tmp = is.readByte()) >= 0) { result |= tmp << 21; } else { result |= (tmp & 0x7f) << 21; result |= (tmp = is.readByte()) << 28; if (tmp < 0) { if (is.readByte() >= 0) { return result;
ByteBufInputStream inputStream = new ByteBufInputStream(buf); int enumValue = inputStream.readByte(); RequestType type = RequestType.values()[enumValue]; if (LOG.isDebugEnabled()) {