format/src/main/java/com/github/sadikovi/riff/io/OutputBuffer.java
/**
   * Writes a long to the underlying output stream as eight bytes, high byte first.
   * @param v long value to write
   */
Writes a long to the underlying output stream as eight bytes, high byte first.
@param v long value to write
Writes a long to the underlying output stream as eight bytes high byte first . @param v long value to write
public void writeLong(long v) throws IOException {
    buffer[0] = (byte) (0xff & (v >> 56));
    buffer[1] = (byte) (0xff & (v >> 48));
    buffer[2] = (byte) (0xff & (v >> 40));
    buffer[3] = (byte) (0xff & (v >> 32));
    buffer[4] = (byte) (0xff & (v >> 24));
    buffer[5] = (byte) (0xff & (v >> 16));
    buffer[6] = (byte) (0xff & (v >>  8));
    buffer[7] = (byte) (0xff & v);
    write(buffer, 0, 8);
  }
public void writeLong ( long v ) throws IOException { buffer [ 0 ] = ( byte ) ( 0xff & ( v >> 56 ) ) ; buffer [ 1 ] = ( byte ) ( 0xff & ( v >> 48 ) ) ; buffer [ 2 ] = ( byte ) ( 0xff & ( v >> 40 ) ) ; buffer [ 3 ] = ( byte ) ( 0xff & ( v >> 32 ) ) ; buffer [ 4 ] = ( byte ) ( 0xff & ( v >> 24 ) ) ; buffer [ 5 ] = ( byte ) ( 0xff & ( v >> 16 ) ) ; buffer [ 6 ] = ( byte ) ( 0xff & ( v >> 8 ) ) ; buffer [ 7 ] = ( byte ) ( 0xff & v ) ; write ( buffer , 0 , 8 ) ; }
Writes a long to the underlying output stream as eight bytes, high byte first.
Writes a long to the underlying output stream as eight bytes high byte first .