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 参考 » QABinaryMessage 类

 

readBinary 函数

语法
qa_int QABinaryMessage::readBinary(
  qa_bytes value,
  qa_int length
)
参数
  • value   将数据读取到的缓冲区。

  • length   要读取的最大字节数。

注释

从 QABinaryMessage 实例消息主体的未读部分开始读取指定字节数。

另请参见

writeBinary 函数

返回值

返回读取到缓冲区的字节总数;如果已到达流末尾而没有其它数据,则返回 -1。