Lines Matching refs:bytes
15 // Smallest block we'll allocate is 2**N bytes.
17 // Same as above, but first uses up to len bytes from storage.
22 // Returns contiguous bytes aligned at least for pointers.
23 char* alloc(size_t bytes) {
24 bytes = SkAlignPtr(bytes);
26 if (bytes > fRemaining) {
27 this->makeSpace(bytes);
29 SkASSERT(bytes <= fRemaining);
32 fByte += bytes;
33 fRemaining = SkToU32(fRemaining - bytes);
37 // Returns our best estimate of the number of bytes we've allocated.
42 void makeSpace(size_t bytes);