public void writeEliasGammaCodingPositiveInteger ( int value ) throws IOException { if ( value > 0 ) { if ( value == 1 ) { writeBit ( 1 ) ; } else { writeBit ( 0 ) ; writeEliasGammaCodingPositiveInteger ( value / 2 ) ; writeBit ( value % 2 ) ; } } }
Write elias gamma coding positive integer .