mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Clarify the return value override
This commit is contained in:
@@ -182,9 +182,7 @@ class DispatchDataConverter : DefaultDataConverter {
|
||||
}
|
||||
}
|
||||
|
||||
std::optional<intptr_t> write(const int opcode,
|
||||
void* data,
|
||||
const EventResult& response) {
|
||||
void write(const int opcode, void* data, const EventResult& response) {
|
||||
switch (opcode) {
|
||||
case effGetChunk:
|
||||
// Write the chunk data to some publically accessible place in
|
||||
@@ -194,14 +192,17 @@ class DispatchDataConverter : DefaultDataConverter {
|
||||
chunk.assign(response.data->begin(), response.data->end());
|
||||
|
||||
*static_cast<void**>(data) = chunk.data();
|
||||
return std::nullopt;
|
||||
break;
|
||||
default:
|
||||
return DefaultDataConverter::write(opcode, data, response);
|
||||
DefaultDataConverter::write(opcode, data, response);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
intptr_t return_value(const int opcode, const intptr_t original) {
|
||||
return DefaultDataConverter::return_value(opcode, original);
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<uint8_t>& chunk;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user