format/src/main/java/com/github/sadikovi/riff/io/OutStream.java
/**
   * Write long value into output stream. Value is written in big endian.
   * @param value long value
   * @throws IOException
   */
Write long value into output stream. Value is written in big endian.
@param value long value
@throws IOException
Write long value into output stream . Value is written in big endian . @param value long value @throws IOException
public void writeLong(long value) throws IOException {
    buf[0] = (byte) (0xff & value >> 56);
    buf[1] = (byte) (0xff & value >> 48);
    buf[2] = (byte) (0xff & value >> 40);
    buf[3] = (byte) (0xff & value >> 32);
    buf[4] = (byte) (0xff & value >> 24);
    buf[5] = (byte) (0xff & value >> 16);
    buf[6] = (byte) (0xff & value >> 8);
    buf[7] = (byte) (0xff & value);
    write(buf, 0, 8);
  }
public void writeLong ( long value ) throws IOException { buf [ 0 ] = ( byte ) ( 0xff & value >> 56 ) ; buf [ 1 ] = ( byte ) ( 0xff & value >> 48 ) ; buf [ 2 ] = ( byte ) ( 0xff & value >> 40 ) ; buf [ 3 ] = ( byte ) ( 0xff & value >> 32 ) ; buf [ 4 ] = ( byte ) ( 0xff & value >> 24 ) ; buf [ 5 ] = ( byte ) ( 0xff & value >> 16 ) ; buf [ 6 ] = ( byte ) ( 0xff & value >> 8 ) ; buf [ 7 ] = ( byte ) ( 0xff & value ) ; write ( buf , 0 , 8 ) ; }
Write long value into output stream.
Write long value into output stream .