Lines Matching defs:buffer
140 * @return the number of bytes remaining in the stream buffer after
145 uint8_t* buffer = fStreamBuffer;
147 // We will be reusing the same buffer, starting over from the beginning.
148 // Move any remaining bytes to the start of the buffer.
151 memmove(buffer, SkTAddOffset<uint8_t>(buffer, fCurrRLEByte), remainingBytes);
153 // Adjust the buffer ptr to the start of the unfilled data.
154 buffer += remainingBytes;
157 // bytes of additional space remaining in the buffer, assuming that we
158 // have already copied remainingBytes to the start of the buffer.
159 size_t additionalBytes = this->stream()->read(buffer, fCurrRLEByte);
162 // available. We are at the start of the buffer again.
266 // Initialize a buffer for encoded RLE data
268 SkCodecPrintf("Error: cannot initialize stream buffer.\n");