예제 #1
0
파일: ErlBinary.cs 프로젝트: rioka/nfx
 /// <summary>
 /// Determine if two instances are equal
 /// </summary>
 public bool Equals(ErlBinary rhs)
 {
     return(m_Value.SequenceEqual(rhs.m_Value));
 }
예제 #2
0
 /// <summary>
 /// Convert stream content to printable binary string (i.e. &lt;&lt;131,10,...>>)
 /// </summary>
 /// <returns></returns>
 public string ToBinaryString()
 {
     return(ErlBinary.ToBinaryString(m_Buffer, 0, m_Position));
 }
예제 #3
0
 /// <summary>
 /// Write an array of bytes to the stream as an Erlang binary
 /// </summary>
 public void WriteBinary(ErlBinary bin)
 {
     write(ErlExternalTag.Bin);
     Write4BE(bin.Length);
     Write(bin.Value);
 }