Source/NFX.Erlang/ErlInputStream.cs
/// <summary>
/// Read Erlang pid from the stream
/// </summary>
Read Erlang pid from the stream
Read Erlang pid from the stream
public ErlPid ReadPid()
      {
        readTag(ErlExternalTag.Pid);
        var node    = ReadAtom();
        var id      = Read4BE() & 0x7fff; 
        var serial  = Read4BE() & 0x1fff; 
        var creation= Read1()   & 0x03;   
        return new ErlPid(node, id, serial, creation);
      }
public ErlPid ReadPid ( ) { readTag ( ErlExternalTag . Pid ) ; var node = ReadAtom ( ) ; var id = Read4BE ( ) & 0x7fff ; var serial = Read4BE ( ) & 0x1fff ; var creation = Read1 ( ) & 0x03 ; return new ErlPid ( node , id , serial , creation ) ; }
Read Erlang pid from the stream
Read Erlang pid from the stream
// 15 bits // 13 bits // 2 bits