Skip to content

Read value sometimes exists with strange signs at the end of value #69

@maxtju

Description

@maxtju

I add key-vals by myself (with python script) and checking what was read after the add.
For example this pair was created:

INFO:root:Key: confidence_thresh ---> Value: 0.65 (READ: b'0.65')

But when Im reading this value thourgh c++ code:

std::vectorstd::string vKeys = m_pKv->keys(strKeysPrefix);
for (auto key : vKeys)
{
auto kvs = m_pKv->item(key);
std::cout << ">>> " << kvs.value << " -> " << kvs.value.size() << " [" << (int)kvs.value.back() - 'a' << "]" << std::endl;
}

I receive the following:

0.65� -> 6 [93]

As you can see there is nothing added to the value. Do you have any thoughts what Im doing wrongly ?
Thank you & best regards
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions