Code example for LinkedList

Methods: removeFirst, size

0
	} 
 
	public short readUnsignedByte() { 
		short res = 0;
 
		if (bytes.size() == 0)
			return res;
 
		res += (short) (bytes.removeFirst() + Byte.MAX_VALUE);
 
		return res;
	} 
 
	public int readUnsignedShort() { 
		int res = 0;
 
		if (bytes.size() == 0)
			return res;
 
		res += readUnsignedByte();
		res += readUnsignedByte() << 8;