Source/NFX.Erlang/ErlOutputStream.cs
/// <summary>
/// Write an Erlang port to the stream
/// </summary>
Write an Erlang port to the stream
Write an Erlang port to the stream
public void WritePort(ErlPort p)
    {
      Debug.Assert(p != ErlPort.Null);
      write(ErlExternalTag.Port);
      WriteAtom(p.Node);
      Write4BE(p.Id & 0x0fffFFFF); 
      Write((byte)(p.Creation & 0x3)); 
    }
public void WritePort ( ErlPort p ) { Debug . Assert ( p != ErlPort . Null ) ; write ( ErlExternalTag . Port ) ; WriteAtom ( p . Node ) ; Write4BE ( p . Id & 0x0fffFFFF ) ; Write ( ( byte ) ( p . Creation & 0x3 ) ) ; }
Write an Erlang port to the stream
Write an Erlang port to the stream
// 28 bits // 2 bits
p
ErlPort