Optimize getSendBuffer for large sends

This commit is contained in:
Alex Hultman
2021-09-19 01:19:29 +00:00
parent 6617e7bd5c
commit 069e66b31c
4 changed files with 39 additions and 36 deletions
+3
View File
@@ -50,6 +50,9 @@ struct BackPressure {
void reserve(size_t length) {
buffer.reserve(length + pendingRemoval);
}
void resize(size_t length) {
buffer.resize(length + pendingRemoval);
}
const char *data() {
return buffer.data() + pendingRemoval;
}