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

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » UltraLite C++ API 参考 » UltraLite_StreamReader_iface 类

 

GetStringChunk 函数

通过将 buffer_len 字节复制到缓冲区字符串中,从当前的 StreamReader 偏移获取字符串块。

语法
bool UltraLite_StreamReader_iface::GetStringChunk(
  char * str,
  size_t buffer_len,
  size_t * len_retn,
  bool * morebytes
)
参数
  • str   指向某个字符数组的指针。

  • buffer_len   缓冲区或数组的长度。buffer_len 必须大于或等于 0。

  • len_retn   输出参数。返回的长度。

  • morebytes   输出参数。如果要读取更多字符,则为 true。

注释

除非使用SetReadPosition 函数,否则将从上次读取停止处读取字符。