microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
microfmt::gdb::client_request_decoder Class Reference

Parses incoming GDB client requests (acting as a GDB server). More...

#include <gdb_decoders.hpp>

Static Public Member Functions

static RELOCO_BEGIN_UNSAFE_CODE packet_type decode (string_view payload, scratch_allocator &scratch, client_request_view &out_view) noexcept
 Decodes a raw payload into a structured request view.
 

Detailed Description

Parses incoming GDB client requests (acting as a GDB server).

Member Function Documentation

◆ decode()

static RELOCO_BEGIN_UNSAFE_CODE packet_type microfmt::gdb::client_request_decoder::decode ( string_view  payload,
scratch_allocator &  scratch,
client_request_view &  out_view 
)
inlinestaticnoexcept

Decodes a raw payload into a structured request view.

Parameters
payloadThe raw string payload (without '$' or '#XX').
scratchScratch allocator for decoding hex/binary data payloads.
out_viewPopulated with the decoded arguments.
Returns
The identified packet_type, or unknown on failure/unrecognized.

The documentation for this class was generated from the following file: