Beispiel #1
0
 /// <summary>
 /// Determine if two instances are equal
 /// </summary>
 public bool Equals(ErlBinary rhs)
 {
     return(m_Value.SequenceEqual(rhs.m_Value));
 }
Beispiel #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));
 }
Beispiel #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);
 }