Source/NFX.Erlang/ErlOutputStream.cs
/// <summary>
/// Write an Erlang PID to the stream
/// </summary>
Write an Erlang PID to the stream
Write an Erlang PID to the stream
public void WritePid(ErlPid pid)
    {
      Debug.Assert(pid != ErlPid.Null);
      write(ErlExternalTag.Pid);
      WriteAtom(pid.Node);
      Write4BE(pid.Id & 0x7fff); 
      Write4BE(pid.Serial & 0x1fff); 
      Write1((byte)(pid.Creation & 0x3)); 
    }
public void WritePid ( ErlPid pid ) { Debug . Assert ( pid != ErlPid . Null ) ; write ( ErlExternalTag . Pid ) ; WriteAtom ( pid . Node ) ; Write4BE ( pid . Id & 0x7fff ) ; Write4BE ( pid . Serial & 0x1fff ) ; Write1 ( ( byte ) ( pid . Creation & 0x3 ) ) ; }
Write an Erlang PID to the stream
Write an Erlang PID to the stream
// 15 bits // 13 bits // 2 bits
pid
ErlPid