/// <summary> /// Determine if two instances are equal /// </summary> public bool Equals(ErlBinary rhs) { return(m_Value.SequenceEqual(rhs.m_Value)); }
/// <summary> /// Convert stream content to printable binary string (i.e. <<131,10,...>>) /// </summary> /// <returns></returns> public string ToBinaryString() { return(ErlBinary.ToBinaryString(m_Buffer, 0, m_Position)); }
/// <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); }