1 /* 2 * Copyright (C) 2021 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 { Parcelable()19Parcelable::Parcelable() : Parcelable(false) 20 {} 21 Parcelable(bool asRemote)22Parcelable::Parcelable(bool asRemote) 23 {} 24 Parcel()25Parcel::Parcel() 26 {} 27 28 Parcel::~Parcel() = default; 29 GetDataCapacity() const30size_t Parcel::GetDataCapacity() const 31 { 32 return 0; 33 } 34 SetDataCapacity(size_t newCapacity)35bool Parcel::SetDataCapacity(size_t newCapacity) 36 { 37 (void) newCapacity; 38 return false; 39 } 40 WriteBuffer(const void * data,size_t size)41bool Parcel::WriteBuffer(const void *data, size_t size) 42 { 43 (void) data; 44 (void) size; 45 return false; 46 } 47 WriteInt32(int32_t value)48bool Parcel::WriteInt32(int32_t value) 49 { 50 (void) value; 51 return false; 52 } 53 ReadBuffer(size_t length)54const uint8_t *Parcel::ReadBuffer(size_t length) 55 { 56 (void) length; 57 return nullptr; 58 } 59 ReadInt32()60int32_t Parcel::ReadInt32() 61 { 62 return 0; 63 } 64 } // namespace OHOS 65