17418042dSoh_ci/* 27418042dSoh_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 37418042dSoh_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47418042dSoh_ci * you may not use this file except in compliance with the License. 57418042dSoh_ci * You may obtain a copy of the License at 67418042dSoh_ci * 77418042dSoh_ci * http://www.apache.org/licenses/LICENSE-2.0 87418042dSoh_ci * 97418042dSoh_ci * Unless required by applicable law or agreed to in writing, software 107418042dSoh_ci * distributed under the License is distributed on an "AS IS" BASIS, 117418042dSoh_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127418042dSoh_ci * See the License for the specific language governing permissions and 137418042dSoh_ci * limitations under the License. 147418042dSoh_ci */ 157418042dSoh_ci 167418042dSoh_ci#ifndef BYTES_H 177418042dSoh_ci#define BYTES_H 187418042dSoh_ci 197418042dSoh_ci#include <memory> 207418042dSoh_ci#include <vector> 217418042dSoh_ci 227418042dSoh_cinamespace OHOS::ObjectStore { 237418042dSoh_ciusing Bytes = std::vector<uint8_t>; 247418042dSoh_cistatic const char *FIELDS_PREFIX = "p_"; 257418042dSoh_cistatic const int32_t FIELDS_PREFIX_LEN = 2; 267418042dSoh_cistatic const std::string STRING_PREFIX = "[STRING]"; 277418042dSoh_cistatic const int32_t STRING_PREFIX_LEN = STRING_PREFIX.length(); 287418042dSoh_ci} // namespace OHOS::ObjectStore 297418042dSoh_ci 307418042dSoh_ci#endif // BYTES_H 31