public short getUnsigned() { return buf.getUnsigned(); }
try final int firstByte = in.getUnsigned();
switch (prefixLength) { case 1: dataLength = getUnsigned(position()); break; case 2:
try final int firstByte = in.getUnsigned();
fieldSize = getUnsigned(); break; case 2:
public short getUnsigned(int index) { return buf.getUnsigned(index); }
final short errorClass = body.getUnsigned(); final short errorNumber = body.getUnsigned(); final String reasonPhrase = MinaUtils.getString(body); return new ErrorCodeAttribute(errorClass, errorNumber, reasonPhrase);
public DecodingState decode(final ByteBuffer in, final ProtocolDecoderOutput out) throws Exception { in.mark(); final int firstByte = in.getUnsigned(); // Reset the buffer position. in.reset(); final int masked = firstByte & 0xc0; if (masked > 0) { return this.m_stateFactory.newState(); } else { return null; } } }