Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere C++ API 参考 » QATextMessage 类

 

readText 函数

语法
qa_int QATextMessage::readText(
  qa_string string,
  qa_int length
)
参数
  • string   文本的目标。

  • length   要读取到目标缓冲区的 qa_char 的最大数量,包括空终止符。

注释

从当前文本位置将请求长度的文本读取到缓冲区。

返回值

返回读取的非空 qa_char 的实际数量;如果已读取整个文本流,则返回 -1。