cass_value_get_string returns not null terminated strings should be documented. Spent quite a bit of time on this one.

33 views
Skip to first unread message

Randy Klingenberg

unread,
Dec 31, 2021, 12:01:43 AM12/31/21
to DataStax C++ Driver for Apache Cassandra User Mailing List
A C++ API should not call it a string if it is not null terminated.

Michael Penick

unread,
Aug 4, 2022, 3:55:25 PM8/4/22
to DataStax C++ Driver for Apache Cassandra User Mailing List, randykli...@comcast.net
Sorry you ran into that issue. You're right that should be documented. I'll create an issue to follow up on.

Note: The reason they're not null-terminated is to avoid copying strings into another buffer.

Mike

Reply all
Reply to author
Forward
0 new messages