format/src/main/java/com/github/sadikovi/riff/io/OutputBuffer.java
/**
   * Writes a short to the underlying output stream as two bytes, high byte first.
   * @param v short value to write
   */
Writes a short to the underlying output stream as two bytes, high byte first.
@param v short value to write
Writes a short to the underlying output stream as two bytes high byte first . @param v short value to write
public void writeShort(int v) throws IOException {
    buffer[0] = (byte) (0xff & (v >> 8));
    buffer[1] = (byte) (0xff & v);
    write(buffer, 0, 2);
  }
public void writeShort ( int v ) throws IOException { buffer [ 0 ] = ( byte ) ( 0xff & ( v >> 8 ) ) ; buffer [ 1 ] = ( byte ) ( 0xff & v ) ; write ( buffer , 0 , 2 ) ; }
Writes a short to the underlying output stream as two bytes, high byte first.
Writes a short to the underlying output stream as two bytes high byte first .