Source/NFX.Erlang/ErlInputStream.cs
/// <summary>
/// Read Erlang port from the stream
/// </summary>
Read Erlang port from the stream
Read Erlang port from the stream
public ErlPort ReadPort()
      {
        readTag(ErlExternalTag.Port);
        var node    = ReadAtom();
        var id      = Read4BE() & 0x0fffffff; 
        var creation= Read1() & 0x03; 
        return new ErlPort(node, id, creation);
      }
public ErlPort ReadPort ( ) { readTag ( ErlExternalTag . Port ) ; var node = ReadAtom ( ) ; var id = Read4BE ( ) & 0x0fffffff ; var creation = Read1 ( ) & 0x03 ; return new ErlPort ( node , id , creation ) ; }
Read Erlang port from the stream
Read Erlang port from the stream
// 28 bits // 2 bits