Source/NFX.Erlang/ErlOutputStream.cs
/// <summary>
/// Write an Erlang list header to the stream. After calling this
/// method, you must write 'arity' elements to the stream followed by
/// nil, or it will not be possible to decode it later.
/// </summary>
Write an Erlang list header to the stream. After calling this
method, you must write 'arity' elements to the stream followed by
nil, or it will not be possible to decode it later.
Write an Erlang list header to the stream . After calling this method you must write ' arity ' elements to the stream followed by nil or it will not be possible to decode it later .
public void WriteListHead(int arity, bool isStr = false)
    {
      if (arity == 0)
        WriteNil();
      else if (isStr)
      {
        write(ErlExternalTag.String);
        Write2BE(arity);
      }
      else
      {
        write(ErlExternalTag.List);
        Write4BE(arity);
      }
    }
public void WriteListHead ( int arity , bool isStr = false ) { if ( arity == 0 ) WriteNil ( ) ; else if ( isStr ) { write ( ErlExternalTag . String ) ; Write2BE ( arity ) ; } else { write ( ErlExternalTag . List ) ; Write4BE ( arity ) ; } }
Write an Erlang list header to the stream.
Write an Erlang list header to the stream .
arity
int
isStr
bool