blob: fe58ee13d1f94e45ee4fb1335ea417b6def6e140 [file] [log] [blame]
Ferran Balaguer73882172019-09-02 16:39:42 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Francis Murtagh3a161982019-09-04 15:25:02 +01008#include <armnn/Exceptions.hpp>
9
Ferran Balaguer73882172019-09-02 16:39:42 +010010#include <stdint.h>
11
12namespace armnn
13{
14
15namespace profiling
16{
17
Francis Murtagh3a161982019-09-04 15:25:02 +010018void WriteUint64(unsigned char* buffer, unsigned int offset, uint64_t value);
19
Ferran Balaguer73882172019-09-02 16:39:42 +010020void WriteUint32(unsigned char* buffer, unsigned int offset, uint32_t value);
21
22void WriteUint16(unsigned char* buffer, unsigned int offset, uint16_t value);
23
Francis Murtagh3a161982019-09-04 15:25:02 +010024uint64_t ReadUint64(const unsigned char* buffer, unsigned int offset);
25
Ferran Balaguer73882172019-09-02 16:39:42 +010026uint32_t ReadUint32(const unsigned char* buffer, unsigned int offset);
27
28uint16_t ReadUint16(const unsigned char* buffer, unsigned int offset);
29
Francis Murtagh3a161982019-09-04 15:25:02 +010030class BufferExhaustion : public armnn::Exception
31{
32 using Exception::Exception;
33};
34
Ferran Balaguer73882172019-09-02 16:39:42 +010035} // namespace profiling
36
37} // namespace armnn