MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / CopyBufferSize

Method CopyBufferSize

Libraries/unrar/file.hpp:129–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128#endif
129 static size_t CopyBufferSize()
130 {
131#ifdef _WIN_ALL
132 // USB flash performance is poor with 64 KB buffer, 256+ KB resolved it.
133 // For copying from HDD to same HDD the best performance was with 256 KB
134 // buffer in XP and with 1 MB buffer in Win10.
135 return WinNT()==WNT_WXP ? 0x40000:0x100000;
136#else
137 return 0x100000;
138#endif
139 }
140};
141
142#endif

Callers

nothing calls this directly

Calls 1

WinNTFunction · 0.85

Tested by

no test coverage detected