Home
last modified time | relevance | path

Searched refs:bytesPeeked (Results 1 – 2 of 2) sorted by relevance

/external/skia/tests/
DStreamTest.cpp210 const size_t bytesPeeked = stream->peek(peekPtr, bytesToPeek); in compare_peek_to_read() local
219 REPORTER_ASSERT(reporter, !memcmp(peekPtr, readPtr, bytesPeeked)); in compare_peek_to_read()
222 REPORTER_ASSERT(reporter, bytesRead >= bytesPeeked); in compare_peek_to_read()
224 return bytesRead - bytesPeeked; in compare_peek_to_read()
269 const size_t bytesPeeked = bufferedStream->peek(peekStorage.get(), bytesToPeek); in test_peeking_front_buffered_stream() local
270 if (0 == bytesPeeked) { in test_peeking_front_buffered_stream()
277 const size_t bytesRead = bufferedStream->read(readStorage.get(), bytesPeeked); in test_peeking_front_buffered_stream()
278 REPORTER_ASSERT(r, bytesRead == bytesPeeked); in test_peeking_front_buffered_stream()
279 REPORTER_ASSERT(r, !memcmp(peekStorage.get(), readStorage.get(), bytesPeeked)); in test_peeking_front_buffered_stream()
/external/skia/src/codec/
DSkWebpCodec.cpp38 const size_t bytesPeeked = stream->peek(buffer, WEBP_VP8_HEADER_SIZE); in webp_parse_header() local
39 if (bytesPeeked != WEBP_VP8_HEADER_SIZE) { in webp_parse_header()