add json BJSON_TYPE_BYTES support

This commit is contained in:
MihailRis
2024-09-12 17:22:00 +03:00
parent 6f4a7db910
commit f8fadf8b74
7 changed files with 72 additions and 8 deletions
+6
View File
@@ -249,6 +249,12 @@ List_sptr Map::list(const std::string& key) const {
return nullptr;
}
ByteBuffer_sptr Map::bytes(const std::string& key) const {
auto found = values.find(key);
if (found != values.end()) return std::get<ByteBuffer_sptr>(found->second);
return nullptr;
}
void Map::flag(const std::string& key, bool& dst) const {
dst = get(key, dst);
}