ArmNN  NotReleased
armnn::gatordmock Namespace Reference

Classes

struct  CategoryRecord
 
class  CommandFileParser
 
class  CommandLineProcessor
 
struct  CounterCaptureValues
 
struct  CounterDirectory
 
struct  CounterSetRecord
 
struct  DeviceRecord
 
struct  EventRecord
 
class  GatordMockService
 
struct  PacketVersion
 
class  PeriodicCounterCaptureCommandHandler
 
class  PeriodicCounterSelectionResponseHandler
 
class  StreamMetadataCommandHandler
 
class  TimelineCaptureCommandHandler
 
class  TimelineDirectoryCaptureCommandHandler
 

Enumerations

enum  TargetEndianness { BeWire, LeWire }
 
enum  PacketDirection { Sending, ReceivedHeader, ReceivedData }
 

Functions

std::string ReadString (const unsigned char *buffer, unsigned int &offset)
 

Enumeration Type Documentation

◆ PacketDirection

◆ TargetEndianness

enum TargetEndianness
strong
Enumerator
BeWire 
LeWire 

Definition at line 22 of file GatordMockService.hpp.

Function Documentation

◆ ReadString()

std::string armnn::gatordmock::ReadString ( const unsigned char *  buffer,
unsigned int &  offset 
)

Definition at line 57 of file StreamMetadataCommandHandler.cpp.

References Packet::GetData(), Packet::GetLength(), armnn::profiling::ReadUint16(), armnn::profiling::ReadUint32(), armnn::profiling::uint16_t_size, and armnn::profiling::uint32_t_size.

58 {
59  const char* stringPtr = reinterpret_cast<const char*>(&buffer[offset]);
60  return stringPtr != nullptr ? std::string(stringPtr) : "";
61 }