コード例 #1
0
        /// <summary>
        /// Compare this instance to the IErlObject.
        /// Negative value means that the value is less than obj, positive - greater than the obj
        /// </summary>
        public int CompareTo(IErlObject obj)
        {
            if (!(obj is ErlByte))
            {
                return(TypeOrder < obj.TypeOrder ? -1 : 1);
            }

            ErlByte rhs = (ErlByte)obj;

            return(Value.CompareTo(rhs.Value));
        }
コード例 #2
0
ファイル: ErlOutputStream.cs プロジェクト: rioka/nfx
 /// <summary>
 /// Write a single byte to the stream as an Erlang integer
 /// </summary>
 public void WriteByte(ErlByte b)
 {
     writeLong(b.ValueAsLong, false);
 }
コード例 #3
0
ファイル: ErlLong.cs プロジェクト: dotnetchris/nfx
 public bool Equals(ErlByte o)
 {
     return(Value == o.Value);
 }