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 类

 

GetLength 函数

获取字符串/二进制值的长度。

语法
size_t UltraLite_StreamReader_iface::GetLength(
  bool fetch_as_chars
)
参数
  • fetch_as_chars   对于字节,长度为 false;对于字符,长度为 true。

返回值
  • 二进制值的字节数(对于二进制,将忽略 fetch_as_chars)。

  • 字符串值的字符数或字节数。