Lines Matching refs:bytesWritten
161 size_t bytesWritten = writer.bytesWritten(); in TestObjectSerializationNoAlign() local
162 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
170 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
176 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
185 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten); in TestObjectSerializationNoAlign()
199 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
200 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
202 SkASSERT(bytesWritten <= 4096); in TestFlattenableSerialization()
207 SkReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
214 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
222 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten); in TestFlattenableSerialization()
237 size_t bytesWritten = writer.bytesWritten(); in TestArraySerialization() local
239 REPORTER_ASSERT(reporter, (4 + kArraySize * sizeof(T)) == bytesWritten); in TestArraySerialization()
245 SkReadBuffer buffer(dataWritten, bytesWritten); in TestArraySerialization()
252 SkReadBuffer buffer2(dataWritten, bytesWritten); in TestArraySerialization()
546 size_t size = writer.bytesWritten(); in DEF_TEST()