1 /* 2 * Copyright (C) 2023 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(Allocator * allocator)25Parcel::Parcel(Allocator *allocator) 26 {} 27 ~Parcel()28Parcel::~Parcel() 29 {} 30 GetDataCapacity() const31size_t Parcel::GetDataCapacity() const 32 { 33 return 0; 34 } 35 SetDataCapacity(size_t newCapacity)36bool Parcel::SetDataCapacity(size_t newCapacity) 37 { 38 (void) newCapacity; 39 return false; 40 } 41 WriteUnpadBuffer(const void * data,size_t size)42bool Parcel::WriteUnpadBuffer(const void *data, size_t size) 43 { 44 (void) data; 45 (void) size; 46 return false; 47 } 48 WriteInt32(int32_t value)49bool Parcel::WriteInt32(int32_t value) 50 { 51 return Write<int32_t>(value); 52 } 53 ReadBuffer(size_t length)54const uint8_t *Parcel::ReadBuffer(size_t length) 55 { 56 (void) length; 57 return nullptr; 58 } 59 } // namespace OHOS 60