1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Reverted 6ca7af73cf "Optimised the base class implementation of InputStream::skipNextBytes() a bit"

This commit is contained in:
Tom Poole 2018-08-29 17:51:52 +01:00
parent 493591a7ef
commit 5c26cd5586

View file

@ -218,10 +218,6 @@ void InputStream::skipNextBytes (int64 numBytesToSkip)
{
if (numBytesToSkip > 0)
{
// try to just set the position first as this will be much faster than reading each byte
if (setPosition (getPosition() + numBytesToSkip))
return;
auto skipBufferSize = (int) jmin (numBytesToSkip, (int64) 16384);
HeapBlock<char> temp (skipBufferSize);