protected void writeZeroBranchSize(final BitOutputStream out,
    final long value, final long max, final Bits bits) throws IOException {
    assert 0 <= value;
    assert max >= value;
    if (SERIALIZATION_CHECKS) {
      out.write(SerializationChecks.BeforeCount);
    }
    if (this.useBinomials) {
      Gaussian.fromBinomial(0.5, max).encode(out, value, max);
    }
    else {
      out.writeBoundedLong(value, 1 + max);
    }
    if (SERIALIZATION_CHECKS) {
      out.write(SerializationChecks.AfterCount);
    }
  }
protected void writeZeroBranchSize ( final BitOutputStream out , final long value , final long max , final Bits bits ) throws IOException { assert 0 <= value ; assert max >= value ; if ( SERIALIZATION_CHECKS ) { out . write ( SerializationChecks . BeforeCount ) ; } if ( this . useBinomials ) { Gaussian . fromBinomial ( 0.5 , max ) . encode ( out , value , max ) ; } else { out . writeBoundedLong ( value , 1 + max ) ; } if ( SERIALIZATION_CHECKS ) { out . write ( SerializationChecks . AfterCount ) ; } }
Write zero branch size.

@param out   the out
@param value the value
@param max   the max
@param bits  the bits
@throws IOException the io exception