1 /* 2 * Copyright (c) 2022 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 namespace OHOS { Parcelable()18Parcelable::Parcelable() 19 { 20 } 21 Parcel()22Parcel::Parcel() 23 { 24 } 25 ~Parcel()26Parcel::~Parcel() 27 { 28 } 29 WriteInt32(int32_t value)30bool Parcel::WriteInt32(int32_t value) 31 { 32 return true; 33 } 34 ReadInt32(int32_t & value)35bool Parcel::ReadInt32(int32_t &value) 36 { 37 return true; 38 } 39 ReadInt32()40int32_t Parcel::ReadInt32() 41 { 42 return 0; 43 } 44 WriteUint32(uint32_t value)45bool Parcel::WriteUint32(uint32_t value) 46 { 47 return true; 48 } 49 ReadUint32(uint32_t & value)50bool Parcel::ReadUint32(uint32_t &value) 51 { 52 return true; 53 } 54 ReadUint32()55uint32_t Parcel::ReadUint32() 56 { 57 return 0; 58 } 59 WriteUint64(uint64_t value)60bool Parcel::WriteUint64(uint64_t value) 61 { 62 return true; 63 } 64 ReadUint64()65uint64_t Parcel::ReadUint64() 66 { 67 return 0; 68 } 69 WriteFloat(float value)70bool Parcel::WriteFloat(float value) 71 { 72 return true; 73 } 74 ReadFloat()75float Parcel::ReadFloat() 76 { 77 return 0; 78 } 79 WriteString(const std::string & value)80bool Parcel::WriteString(const std::string &value) 81 { 82 return true; 83 } 84 ReadString()85const std::string Parcel::ReadString() 86 { 87 return ""; 88 } 89 WriteBool(bool value)90bool Parcel::WriteBool(bool value) 91 { 92 return true; 93 } 94 ReadBool()95bool Parcel::ReadBool() 96 { 97 return true; 98 } 99 } // namespace OHOS 100