Files
sxzheng96 5852be5c11 fix compile problem in rk3568
Signed-off-by: sxzheng96 <zhengshuangxi2@huawei.com>
2022-03-11 16:08:07 +08:00

38 lines
1.0 KiB
C++

/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_DATA_BUFFER_H
#define OHOS_DATA_BUFFER_H
#include <cstdint>
#include <stddef.h>
namespace OHOS {
namespace DistributedHardware {
class DataBuffer {
public:
explicit DataBuffer(size_t capacity);
~DataBuffer();
size_t Capacity() const;
uint8_t *Data() const;
private:
size_t capacity_ = 0;
uint8_t *data_ = nullptr;
};
} // namespace DistributedHardware
} // namespace OHOS
#endif