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

 

GetBinary 函数

将当前值检索到二进制缓冲区中,并根据需要进行类型转换。如果缓冲区太小,则该值将被截断。

语法
void ULValue::GetBinary(
  ul_byte * dst,
  size_t len,
  size_t * retr_len
)
参数
  • dst   要接收字节的缓冲区。

  • len   缓冲区的长度。

  • retr_len   输出参数。实际返回的字节数。

注释

最多有 len 个字节被复制到给定缓冲区中。实际复制的字节数在 retr_len 中返回。