Lines Matching refs:bufferSize
352 SkBufferStream::SkBufferStream(SkStream* proxy, size_t bufferSize)
357 this->init(NULL, bufferSize);
360 SkBufferStream::SkBufferStream(SkStream* proxy, void* buffer, size_t bufferSize)
364 SkASSERT(buffer == NULL || bufferSize != 0); // init(addr, 0) makes no sense, we must know how big their buffer is
366 this->init(buffer, bufferSize);
369 void SkBufferStream::init(void* buffer, size_t bufferSize)
371 if (bufferSize == 0)
372 bufferSize = kDefaultBufferSize;
374 fOrigBufferSize = bufferSize;
375 fBufferSize = bufferSize;
376 fBufferOffset = bufferSize; // to trigger a reload on the first read()