(socket) replace a std::vector with an std::array used as a tmp buffer in Socket::readBytes

This commit is contained in:
Benjamin Sergeant
2020-11-11 21:39:31 -08:00
parent 594d2e194a
commit 4e2a40e031
4 changed files with 11 additions and 14 deletions

View File

@ -11,7 +11,6 @@
#include <memory>
#include <mutex>
#include <string>
#include <vector>
#ifdef _WIN32
#include <BaseTsd.h>
@ -102,10 +101,6 @@ namespace ix
static const int kDefaultPollTimeout;
static const int kDefaultPollNoTimeout;
// Buffer for reading from our socket. That buffer is never resized.
std::vector<uint8_t> _readBuffer;
static constexpr size_t kChunkSize = 1 << 15;
SelectInterruptPtr _selectInterrupt;
};
} // namespace ix