Esempio n. 1
0
        /*
         * Convert this tuple to the equivalent Erlang external representation.
         *
         * @param buf an output stream to which the encoded tuple should be
         * written.
         **/
        public override void  encode(OtpOutputStream buf)
        {
            int arity = (int)(elems.Length);

            buf.write_tuple_head(arity);

            for (int i = 0; i < arity; i++)
            {
                buf.write_any(elems[i]);
            }
        }
Esempio n. 2
0
        /*
        * Convert this tuple to the equivalent Erlang external representation.
        *
        * @param buf an output stream to which the encoded tuple should be
        * written.
        **/
        public override void encode(OtpOutputStream buf)
        {
            int arity = (int) (elems.Length);

            buf.write_tuple_head(arity);

             for (int i = 0; i < arity; i++)
            {
                buf.write_any(elems[i]);
            }
        }