16 lines
552 B
C++
16 lines
552 B
C++
// bridge_marshal.cpp — see bridge_marshal.h. Pure; no host types.
|
|
|
|
#include "core/instrument/map/bridge_marshal.h"
|
|
|
|
namespace reasampler::instrument::map {
|
|
|
|
std::optional<std::string> decodeGetProjExtState(int apiReturn,
|
|
const std::string& buffer) {
|
|
// 0 return means absent; guard the buffer too so a reused dirty buffer can't
|
|
// surface stale bytes as a value.
|
|
if (apiReturn <= 0 || buffer.empty()) return std::nullopt;
|
|
return buffer;
|
|
}
|
|
|
|
} // namespace reasampler::instrument::map
|