ArmNN
 21.02
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.

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

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