/** * Convert this bitstr to the equivalent Erlang external representation. * * @param buf * an output stream to which the encoded bitstr should be * written. */ public override void encode(OtpOutputStream buf) { buf.write_bitstr(bin, pad_bits); }