private ReadPlpUnicodeChars ( char &buff, int offst, int len, System.Data.SqlClient.TdsParserStateObject stateObj ) : int | ||
buff | char | |
offst | int | |
len | int | |
stateObj | System.Data.SqlClient.TdsParserStateObject | |
return | int |
internal int ReadPlpUnicodeChars(ref char[] buff, int offst, int len, TdsParserStateObject stateObj)
{
int charsRead;
Debug.Assert(stateObj._syncOverAsync, "Should not attempt pends in a synchronous call");
bool result = TryReadPlpUnicodeChars(ref buff, offst, len, stateObj, out charsRead);
if (!result) { throw SQL.SynchronousCallMayNotPend(); }
return charsRead;
}