Example #1
0
 public void CopyAs8Bit(byte[] buffer, int index)
 {
     if (m_isAscii)
     {
         m_value.CopyTo(0, destinationArray: buffer, destinationIndex: index, length: m_value.Length);
     }
     else
     {
         for (int i = 0; i < Length; i++)
         {
             char ch = this[i];
             buffer[index++] = unchecked ((byte)ch);
         }
     }
 }