MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / encodeMemoryText

Function encodeMemoryText

src/gui/MemoryCommands.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace AetherSDR {
9
10QString encodeMemoryText(const QString& value)
11{
12 // Strip NUL/control bytes first, then apply the protocol space-encoding so
13 // a hand-entered or imported value can never push a raw control byte (which
14 // breaks the radio and other SmartSDR-compatible software) onto the wire.
15 return MemoryFields::sanitizeText(value).replace(' ', QChar(0x7f));
16}
17
18MemoryEntry captureMemoryFromSlice(const RadioModel& model,
19 const SliceModel& slice,

Callers 2

buildMemoryFieldUpdateFunction · 0.85
buildMemoryUpdateDataFunction · 0.85

Calls 1

sanitizeTextFunction · 0.85

Tested by

no test coverage detected