format/src/main/java/com/github/sadikovi/riff/stats/Statistics.java
/**
   * Read statistics from byte buffer.
   * @param buf byte buffer with statistics data
   * @throws IOException
   */
Read statistics from byte buffer.
@param buf byte buffer with statistics data
@throws IOException
Read statistics from byte buffer . @param buf byte buffer with statistics data @throws IOException
public static Statistics readExternal(ByteBuffer buf) throws IOException {
    byte meta = buf.get();
    boolean hasNulls = (meta & 1 << 7) != 0;
    Statistics stats = magicToStatistics(meta & 0x7f);
    stats.readState(buf);
    stats.hasNulls = hasNulls;
    return stats;
  }
public static Statistics readExternal ( ByteBuffer buf ) throws IOException { byte meta = buf . get ( ) ; boolean hasNulls = ( meta & 1 << 7 ) != 0 ; Statistics stats = magicToStatistics ( meta & 0x7f ) ; stats . readState ( buf ) ; stats . hasNulls = hasNulls ; return stats ; }
Read statistics from byte buffer.
Read statistics from byte buffer .
// read byte of metadata