function putShortMSB(s, b) {
  //  put_byte(s, (Byte)(b >> 8));
  //  put_byte(s, (Byte)(b & 0xff));
  s.pending_buf[s.pending++] = b >>> 8 & 255;
  s.pending_buf[s.pending++] = b & 255;
}
/* =========================================================================
 * Put a short in the pending buffer. The 16-bit value is put in MSB order.
 * IN assertion: the stream state is correct and there is enough room in
 * pending_buf.
 */
Put a short in the pending buffer. The 16-bit value is put in MSB order.
IN assertion: the stream state is correct and there is enough room in
pending_buf.
Put a short in the pending buffer . The 16 - bit value is put in MSB order . IN assertion : the stream state is correct and there is enough room in pending_buf .
function putShortMSB(s, b) {
  s.pending_buf[s.pending++] = b >>> 8 & 255;
  s.pending_buf[s.pending++] = b & 255;
}
function putShortMSB ( s , b ) { s . pending_buf [ s . pending ++ ] = b >>> 8 & 255 ; s . pending_buf [ s . pending ++ ] = b & 255 ; }
Put a short in the pending buffer.
Put a short in the pending buffer .
//  put_byte(s, (Byte)(b >> 8)); //  put_byte(s, (Byte)(b & 0xff));