aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/IBufferWrapper.hpp
blob: 9c38ab1dc8c0680d6c9c482431715803fb99cf22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

namespace armnn
{

namespace profiling
{

class IBufferWrapper
{
public:
    virtual ~IBufferWrapper() {}

    virtual unsigned char* Reserve(unsigned int requestedSize, unsigned int& reservedSize) = 0;

    virtual void Commit(unsigned int size) = 0;

    virtual const unsigned char* GetReadBuffer(unsigned int& size) = 0;

    virtual void Release(unsigned int size) = 0;
};

} // namespace profiling

} // namespace armnn