Home
last modified time | relevance | path

Searched refs:inOriginal (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dflatbuffer_schema.cpp54 bool SchemaObject::FlatBufferSchema::IsFlatBufferSchema(const std::string &inOriginal, std::string … in IsFlatBufferSchema() argument
56 if (inOriginal.empty()) { in IsFlatBufferSchema()
60 …if (inOriginal.size() >= SchemaConstant::SCHEMA_STRING_SIZE_LIMIT * 2) { // 2 :Maximum base64 enco… in IsFlatBufferSchema()
62 … LOGE("[FBSchema][Is] OriSchemaSize=%zu too large even after base64 encode.", inOriginal.size()); in IsFlatBufferSchema()
65 auto oriSchemaBuf = reinterpret_cast<const uint8_t *>(inOriginal.c_str()); in IsFlatBufferSchema()
66 flatbuffers::Verifier oriVerifier(oriSchemaBuf, inOriginal.size()); in IsFlatBufferSchema()
68 outDecoded = inOriginal; // The original one is the decoded one in IsFlatBufferSchema()
964 bool SchemaObject::FlatBufferSchema::IsFlatBufferSchema(const std::string &inOriginal, std::string … in IsFlatBufferSchema() argument
966 (void)inOriginal; in IsFlatBufferSchema()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Dschema_object.h158 static bool IsFlatBufferSchema(const std::string &inOriginal, std::string &outDecoded);