Searched refs:bytesRemaining (Results 1 – 3 of 3) sorted by relevance
73 static cairo_surface_t* createImageFromStdin(int bytesRemaining) in createImageFromStdin() argument76 RetainPtr<CFMutableDataRef> data(AdoptCF, CFDataCreateMutable(0, bytesRemaining)); in createImageFromStdin()78 while (bytesRemaining > 0) { in createImageFromStdin()79 size_t bytesToRead = min(bytesRemaining, s_bufferSize); in createImageFromStdin()82 bytesRemaining -= static_cast<int>(bytesRead); in createImageFromStdin()
72 static RetainPtr<CGImageRef> createImageFromStdin(int bytesRemaining) in createImageFromStdin() argument75 RetainPtr<CFMutableDataRef> data(AdoptCF, CFDataCreateMutable(0, bytesRemaining)); in createImageFromStdin()77 while (bytesRemaining > 0) { in createImageFromStdin()78 size_t bytesToRead = min(bytesRemaining, 2048); in createImageFromStdin()81 bytesRemaining -= static_cast<int>(bytesRead); in createImageFromStdin()
1505 … int bytesRemaining = static_cast<int>(state.bufferBinding->byteLength() - state.offset); in validateRenderingState() local1508 if (bytesRemaining >= state.bytesPerElement) in validateRenderingState()1509 numElements = 1 + (bytesRemaining - state.bytesPerElement) / state.stride; in validateRenderingState()