示例#1
0
 public ErlangProcessId(Atom node, uint id, uint serial, byte creation)
 {
     _node = node;
     _id = id;
     _serial = serial;
     _creation = creation;
 }
示例#2
0
        public static Atom From(string symbol)
        {
            Atom atom;

            if (!_atoms.TryGetValue(symbol, out atom))
            {
                atom = new Atom(symbol);
                _atoms[symbol] = atom;
            }

            return atom;
        }
示例#3
0
 public ErlangReference(Atom node, uint id, byte creation)
 {
     _node = node;
     _id = id;
     _creation = creation;
 }
示例#4
0
        void WriteAtom(Atom atom)
        {
            WriteByte(Tags.Atom);

            byte[] symbolBytes = Encoding.ASCII.GetBytes(atom.Value);

            WriteUnsignedShort((ushort)symbolBytes.Length);
            _writer.Write(symbolBytes);
        }