reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 47587ec2d987629c36854dbb75a04f0c35f135fb
parent 301a42a622805458d1a67895a9dcd45733ba7b3c
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sat, 11 Feb 2017 22:30:59 -0500

archive: increase buffer size to 4 KiB

Diffstat:
Msrc/archive.cpp | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/archive.cpp b/src/archive.cpp @@ -32,6 +32,8 @@ using namespace std; +static const size_t BUFFER_SIZE = 4096; + #ifdef _WIN32 static void *wide_fopen(voidpf opaque, const void *filename, int mode) { @@ -104,7 +106,7 @@ void ArchiveWriter::addFile(const Path &path) if(status != ZIP_OK) throw reapack_error(errorMessage(status).c_str()); - string buffer(1024, 0); + string buffer(BUFFER_SIZE, 0); const auto readChunk = [&] { stream.read(&buffer[0], buffer.size());