• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "parcel.h"
17 
18 namespace OHOS::FileManagement::CloudSync {
19 
WriteBool(bool value)20 bool Parcel::WriteBool(bool value)
21 {
22     return IParcel::parcel_->WriteBool(value);
23 }
24 
ReadBool(bool & value)25 bool Parcel::ReadBool(bool &value)
26 {
27     return IParcel::parcel_->ReadBool(value);
28 }
29 
WriteInt32(int32_t value)30 bool Parcel::WriteInt32(int32_t value)
31 {
32     return IParcel::parcel_->WriteInt32(value);
33 }
34 
ReadInt32(int32_t & value)35 bool Parcel::ReadInt32(int32_t &value)
36 {
37     return IParcel::parcel_->ReadInt32(value);
38 }
39 
WriteInt64(int64_t value)40 bool Parcel::WriteInt64(int64_t value)
41 {
42     return IParcel::parcel_->WriteInt64(value);
43 }
44 
WriteUint64(uint64_t value)45 bool Parcel::WriteUint64(uint64_t value)
46 {
47     return IParcel::parcel_->WriteUint64(value);
48 }
49 
ReadInt64(int64_t & value)50 bool Parcel::ReadInt64(int64_t &value)
51 {
52     return IParcel::parcel_->ReadInt64(value);
53 }
54 
ReadUint64(uint64_t & value)55 bool Parcel::ReadUint64(uint64_t &value)
56 {
57     return IParcel::parcel_->ReadUint64(value);
58 }
59 
WriteUint32(uint32_t value)60 bool Parcel::WriteUint32(uint32_t value)
61 {
62     return IParcel::parcel_->WriteUint32(value);
63 }
64 
ReadUint32(uint32_t & value)65 bool Parcel::ReadUint32(uint32_t &value)
66 {
67     return IParcel::parcel_->ReadUint32(value);
68 }
69 
WriteString(const std::string & value)70 bool Parcel::WriteString(const std::string &value)
71 {
72     return IParcel::parcel_->WriteString(value);
73 }
74 
ReadString(std::string & value)75 bool Parcel::ReadString(std::string &value)
76 {
77     return IParcel::parcel_->ReadString(value);
78 }
79 
WriteStringVector(const std::vector<std::string> & value)80 bool Parcel::WriteStringVector(const std::vector<std::string> &value)
81 {
82     return IParcel::parcel_->WriteStringVector(value);
83 }
84 
ReadStringVector(std::vector<std::string> * value)85 bool Parcel::ReadStringVector(std::vector<std::string> *value)
86 {
87     return IParcel::parcel_->ReadStringVector(value);
88 }
89 } // namespace OHOS::FileManagement::CloudSync