/** * Create a binary from a stream containing a binary encoded in Erlang * external format. * * @param buf * the stream containing the encoded binary. * * @exception OtpErlangDecodeException * if the buffer does not contain a valid external * representation of an Erlang binary. */ public OtpErlangBinary(OtpInputStream buf) : base(new byte[0]) { bin = buf.read_binary(); pad_bits = 0; }
/** * Create a binary from a stream containing a binary encoded in Erlang * external format. * * @param buf * the stream containing the encoded binary. * * @exception OtpErlangDecodeException * if the buffer does not contain a valid external * representation of an Erlang binary. */ public OtpErlangBinary(OtpInputStream buf) : base(new byte[0]) { bin = buf.read_binary(); pad_bits = 0; }