/** * Create a bitstr from a stream containing a bitstr encoded in Erlang * external format. * * @param buf * the stream containing the encoded bitstr. * * @exception OtpErlangDecodeException * if the buffer does not contain a valid external * representation of an Erlang bitstr. */ public OtpErlangBitstr(OtpInputStream buf) { bin = buf.read_bitstr(out pad_bits); check_bitstr(bin, pad_bits); }