Code example for ByteBuffer

Methods: putShort

0
	bb.put (value, offset, length);
    } 
 
    public void add (byte value)  { bb.put (value); } 
    public void add (int value)   { bb.putInt (value); } 
    public void add (short value) { bb.putShort (value); } 
    public void add (long value)  { bb.putLong (value); } 
} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE