Example #1
0
File: Ref.cs Project: e42s/jungerl
        /*
        * Create an Erlang ref from a stream containing a ref encoded in
        * Erlang external format.
        *
        * @param buf the stream containing the encoded ref.
        *
        * @exception DecodeException if the buffer does not
        * contain a valid external representation of an Erlang ref.
        **/
        public Ref(OtpInputStream buf)
        {
            Ref r = buf.read_ref();

            this._node = r.node();
            this._creation = r.creation();

            this._ids = r.ids();
        }
Example #2
0
        /*
         * Create an Erlang ref from a stream containing a ref encoded in
         * Erlang external format.
         *
         * @param buf the stream containing the encoded ref.
         *
         * @exception DecodeException if the buffer does not
         * contain a valid external representation of an Erlang ref.
         **/
        public Ref(OtpInputStream buf)
        {
            Ref r = buf.read_ref();

            this._node     = r.node();
            this._creation = r.creation();

            this._ids = r.ids();
        }