format/src/main/java/com/github/sadikovi/riff/stats/Statistics.java
/**
   * Write statistics instance into output buffer.
   * This writes statistics id first, so we can deserialize it for a specific type.
   * @param buf output buffer
   * @throws IOException
   */
Write statistics instance into output buffer.
This writes statistics id first, so we can deserialize it for a specific type.
@param buf output buffer
@throws IOException
Write statistics instance into output buffer . This writes statistics id first so we can deserialize it for a specific type . @param buf output buffer @throws IOException
public void writeExternal(OutputBuffer buf) throws IOException {
    byte meta = (byte) (statisticsToMagic(this) | (hasNulls ? (byte) (1 << 7) : 0));
    buf.writeByte(meta);
    writeState(buf);
  }
public void writeExternal ( OutputBuffer buf ) throws IOException { byte meta = ( byte ) ( statisticsToMagic ( this ) | ( hasNulls ? ( byte ) ( 1 << 7 ) : 0 ) ) ; buf . writeByte ( meta ) ; writeState ( buf ) ; }
Write statistics instance into output buffer.
Write statistics instance into output buffer .
// metadata consists of id and nulls flag in single byte