Zero-copy encode: pack response body in place, single shared tx_buf, drain rx loop
This commit is contained in:
@@ -29,7 +29,7 @@ static ResponseTest test_discovery() {
|
||||
ResponseTest resp;
|
||||
resp.pass = true;
|
||||
|
||||
uint8_t req_buf[256];
|
||||
uint8_t req_buf[1514];
|
||||
span_writer req_out(req_buf, sizeof(req_buf));
|
||||
size_t req_len = encode_request_into(req_out, 0, RequestInfo{});
|
||||
auto send_result = w6300::send(test_socket, std::span<const uint8_t>{req_buf, req_len});
|
||||
|
||||
Reference in New Issue
Block a user