diff options
Diffstat (limited to 'src/profiling/IBufferWrapper.hpp')
-rw-r--r-- | src/profiling/IBufferWrapper.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/profiling/IBufferWrapper.hpp b/src/profiling/IBufferWrapper.hpp new file mode 100644 index 0000000000..5128521d02 --- /dev/null +++ b/src/profiling/IBufferWrapper.hpp @@ -0,0 +1,28 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +namespace armnn +{ + +namespace profiling +{ + +class IBufferWrapper +{ +public: + 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
\ No newline at end of file |