ArmNN
 22.05.01
armnn::gatordmock Namespace Reference

Classes

struct  CategoryRecord
 
class  CommandFileParser
 This class parses a command file for the GatordMockService. More...
 
class  CommandLineProcessor
 Use Boost program options to process the command line. More...
 
struct  CounterCaptureValues
 
struct  CounterDirectory
 
struct  CounterSetRecord
 
struct  DeviceRecord
 
struct  EventRecord
 
class  GatordMockService
 A class that implements a Mock Gatord server. More...
 
struct  PacketVersion
 
class  PeriodicCounterCaptureCommandHandler
 
class  PeriodicCounterSelectionResponseHandler
 
class  StreamMetadataCommandHandler
 
class  StubCommandHandler
 

Functions

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

Function Documentation

◆ ReadString()

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

Definition at line 53 of file StreamMetadataCommandHandler.cpp.

54 {
55  const char* stringPtr = reinterpret_cast<const char*>(&buffer[offset]);
56  return stringPtr != nullptr ? std::string(stringPtr) : "";
57 }