Source/NFX.Erlang/ErlInputStream.cs
/// <summary>
/// Reads list head from the stream
/// </summary>
/// <returns>Arity of the list</returns>
Reads list head from the stream
Reads list head from the stream
private int readListHead()
    {
      var tag = readTag();
      switch (tag)
      {
        case ErlExternalTag.Nil:
          return 0;
        case ErlExternalTag.String:
          return Read2BE();
        case ErlExternalTag.List:
          return Read4BE();
        default:
          throw new ErlException(StringConsts.ERL_INVALID_TERM_TYPE_ERROR,
              "list", tag.ToString());
      }
    }
private int readListHead ( ) { var tag = readTag ( ) ; switch ( tag ) { case ErlExternalTag . Nil : return 0 ; case ErlExternalTag . String : return Read2BE ( ) ; case ErlExternalTag . List : return Read4BE ( ) ; default : throw new ErlException ( StringConsts . ERL_INVALID_TERM_TYPE_ERROR , " " , tag . ToString ( ) ) ; } }
Reads list head from the stream
Reads list head from the stream
Arity of the list
Arity of the list