Esempio n. 1
0
 public ErlangProcessId(Atom node, uint id, uint serial, byte creation)
 {
     _node = node;
     _id = id;
     _serial = serial;
     _creation = creation;
 }
Esempio n. 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;
        }
Esempio n. 3
0
 public ErlangReference(Atom node, uint id, byte creation)
 {
     _node = node;
     _id = id;
     _creation = creation;
 }
Esempio n. 4
0
        void WriteAtom(Atom atom)
        {
            WriteByte(Tags.Atom);

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

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