internal void put_short(int w) { pending_buf[pending++]=(byte)(w/*&0xff*/); pending_buf[pending++]=(byte)(w>>8); } internal void putShortMSB(int b){