private int ReadPlpUnicodeCharsChunk(char[] buff, int offst, int len, TdsParserStateObject stateObj)
 {
     if (stateObj._longlenleft == 0L)
     {
         return 0;
     }
     int num2 = len;
     if ((stateObj._longlenleft >> 1) < len)
     {
         num2 = (int) (stateObj._longlenleft >> 1);
     }
     for (int i = 0; i < num2; i++)
     {
         buff[offst + i] = stateObj.ReadChar();
     }
     stateObj._longlenleft -= ((ulong) num2) << 1;
     return num2;
 }