Example #1
0
        public OtpErlangMap(OtpInputStream buf)
        {
            int arity = buf.ReadMapHead();

            if (arity == 0)
            {
                return;
            }
            for (int i = 0; i < arity; i++)
            {
                IOtpErlangObject key   = buf.ReadAny();
                IOtpErlangObject value = buf.ReadAny();
                Add(key, value);
            }
        }