Home
last modified time | relevance | path

Searched refs:bytesWritten (Results 1 – 25 of 54) sorted by relevance

123

/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DCountOutputStream.java26 private int bytesWritten = 0; field in CountOutputStream
46 bytesWritten += len; in write()
57 bytesWritten += buf.length; in write()
68 bytesWritten++; in write()
77 return bytesWritten; in getBytesWritten()
/external/skia/tests/
DSerializationTest.cpp140 size_t bytesWritten = writer.bytesWritten(); in TestObjectSerializationNoAlign() local
141 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestObjectSerializationNoAlign()
149 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestObjectSerializationNoAlign()
155 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestObjectSerializationNoAlign()
164 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten); in TestObjectSerializationNoAlign()
178 size_t bytesWritten = writer.bytesWritten(); in TestFlattenableSerialization() local
179 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); in TestFlattenableSerialization()
182 SkASSERT(bytesWritten <= sizeof(dataWritten)); in TestFlattenableSerialization()
186 SkValidatingReadBuffer buffer(dataWritten, bytesWritten - 4); in TestFlattenableSerialization()
193 SkValidatingReadBuffer buffer2(dataWritten, bytesWritten); in TestFlattenableSerialization()
[all …]
DWriter32Test.cpp16 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
44 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
51 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten()); in test_rewind()
53 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten()); in test_rewind()
64 REPORTER_ASSERT(reporter, 100*4 == writer.bytesWritten()); in test_rewind()
68 REPORTER_ASSERT(reporter, writer.bytesWritten() < 16); in test_rewind()
86 size_t size = writer.bytesWritten(); in test_ptr()
103 REPORTER_ASSERT(reporter, i*4 == writer->bytesWritten()); in test1()
109 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->bytesWritten()); in test1()
123 REPORTER_ASSERT(reporter, writer->bytesWritten() == len); in test2()
[all …]
DImageIsOpaqueTest.cpp24 SkASSERT(wb.bytesWritten() < sizeof(storage)); in test_flatten()
26 SkReadBuffer rb(storage, wb.bytesWritten()); in test_flatten()
33 REPORTER_ASSERT(reporter, rb.offset() == wb.bytesWritten()); in test_flatten()
DDocumentTest.cpp15 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); in test_empty()
28 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); in test_abort()
96 REPORTER_ASSERT(reporter, stream.bytesWritten() != 0); in test_close()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLCipher.java306 final int bytesWritten; in engineUpdate() local
308 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
314 if (output.length == bytesWritten) { in engineUpdate()
316 } else if (bytesWritten == 0) { in engineUpdate()
319 return Arrays.copyOfRange(output, 0, bytesWritten); in engineUpdate()
337 int bytesWritten; in engineDoFinal() local
340 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineDoFinal()
346 bytesWritten = 0; in engineDoFinal()
350 bytesWritten += doFinalInternal(output, bytesWritten, maximumLen - bytesWritten); in engineDoFinal()
356 if (bytesWritten == output.length) { in engineDoFinal()
[all …]
DOpenSSLSignature.java179 int bytesWritten = NativeCrypto.EVP_SignFinal(ctxLocal, buffer, 0, in engineSign() local
182 byte[] signature = new byte[bytesWritten]; in engineSign()
183 System.arraycopy(buffer, 0, signature, 0, bytesWritten); in engineSign()
/external/skia/src/core/
DSkPictureRecord.cpp132 fRestoreOffsetStack.push(-(int32_t)fWriter.bytesWritten()); in willSave()
152 fRestoreOffsetStack.push(-(int32_t)fWriter.bytesWritten()); in willSaveLayer()
180 SkASSERT(initialOffset+get_paint_offset(SAVE_LAYER, size) == fWriter.bytesWritten()); in recordSaveLayer()
228 this->fillRestoreOffsetPlaceholdersForCurrentStackLevel((uint32_t)fWriter.bytesWritten()); in recordRestore()
273 this->validate(fWriter.bytesWritten(), 0); in recordConcat()
282 this->validate(fWriter.bytesWritten(), 0); in didSetMatrix()
362 size_t offset = fWriter.bytesWritten(); in recordRestoreOffsetPlaceholder()
459 SkASSERT(initialOffset+get_paint_offset(DRAW_PAINT, size) == fWriter.bytesWritten()); in onDrawPaint()
471 SkASSERT(initialOffset+get_paint_offset(DRAW_POINTS, size) == fWriter.bytesWritten()); in onDrawPoints()
484 SkASSERT(initialOffset+get_paint_offset(DRAW_OVAL, size) == fWriter.bytesWritten()); in onDrawOval()
[all …]
DSkWriteBuffer.cpp134 size_t bytesWritten = fWriter.readFromStream(stream, length); in writeStream() local
135 if (bytesWritten < length) { in writeStream()
136 fWriter.reservePad(length - bytesWritten); in writeStream()
138 return bytesWritten; in writeStream()
323 size_t offset = fWriter.bytesWritten(); in writeFlattenable()
326 size_t objSize = fWriter.bytesWritten() - offset; in writeFlattenable()
DSkPictureRecord.h45 this->validate(fWriter.bytesWritten(), 0); in opData()
47 if (fWriter.bytesWritten() == 0) { in opData()
52 return SkData::NewWithCopy(fWriter.contiguousArray(), fWriter.bytesWritten()); in opData()
98 size_t offset = fWriter.bytesWritten(); in addDraw()
146 SkASSERT(fWriter.bytesWritten() == initialOffset + size); in validate()
DSkPictureFlat.h276 size_t size = buffer.bytesWritten(); in Create()
513 const size_t dataSize = fScratch.bytesWritten() - sizeof(SkFlatData); in resetScratch()
527 SkFlatData* detached = (SkFlatData*)fController->allocThrow(fScratch.bytesWritten()); in detachScratch()
532 memcpy(detached, scratch, fScratch.bytesWritten()); in detachScratch()
/external/sonic/
Dwave.c23 int bytesWritten; /* The number of bytes written so far, including header */ member
34 size_t bytesWritten; in writeBytes() local
39 bytesWritten = fwrite(bytes, sizeof(char), length, file->soundFile); in writeBytes()
40 if(bytesWritten != length) { in writeBytes()
44 file->bytesWritten += bytesWritten; in writeBytes()
302 writeInt(file, file->bytesWritten - 8); in closeWaveFile()
312 writeInt(file, file->bytesWritten - 48); in closeWaveFile()
/external/protobuf/java/src/main/java/com/google/protobuf/
DCodedOutputStream.java1086 final int bytesWritten = limit - position; in writeRawBytesInternal() local
1087 value.get(buffer, position, bytesWritten); in writeRawBytesInternal()
1088 length -= bytesWritten; in writeRawBytesInternal()
1090 totalBytesWritten += bytesWritten; in writeRawBytesInternal()
1121 final int bytesWritten = limit - position; in writeRawBytes() local
1122 System.arraycopy(value, offset, buffer, position, bytesWritten); in writeRawBytes()
1123 offset += bytesWritten; in writeRawBytes()
1124 length -= bytesWritten; in writeRawBytes()
1126 totalBytesWritten += bytesWritten; in writeRawBytes()
1155 final int bytesWritten = limit - position; in writeRawBytes() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2_32.java150 int bytesWritten = 0; in serialize() local
152 bytesWritten += serializeHeader(dos); in serialize()
156 bytesWritten += dataLength*4; in serialize()
157 return bytesWritten; in serialize()
DTrie2_16.java153 int bytesWritten = 0; in serialize() local
155 bytesWritten += serializeHeader(dos); in serialize()
159 bytesWritten += dataLength*2; in serialize()
160 return bytesWritten; in serialize()
/external/skia/include/core/
DSkStream.h197 virtual size_t bytesWritten() const = 0;
372 size_t bytesWritten() const override;
386 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
404 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
452 size_t bytesWritten() const override { return fBytesWritten; } in bytesWritten() function
DSkWriter32.h39 size_t bytesWritten() const { return fUsed; } in bytesWritten() function
42 size_t size() const { return this->bytesWritten(); } in size()
215 SkASSERT(offset <= bytesWritten()); in rewindToOffset()
DSkWriteBuffer.h48 size_t bytesWritten() const { return fWriter.bytesWritten(); } in bytesWritten() function
/external/skia/third_party/ktx/
Dktx.cpp102 size_t bytesWritten = 0; in writeKeyAndValueForKTX() local
107 bytesWritten += 4; in writeKeyAndValueForKTX()
119 bytesWritten += keySize; in writeKeyAndValueForKTX()
126 bytesWritten += valueSize; in writeKeyAndValueForKTX()
128 size_t bytesWrittenPadFour = (bytesWritten + 3) & ~3; in writeKeyAndValueForKTX()
131 size_t padding = bytesWrittenPadFour - bytesWritten; in writeKeyAndValueForKTX()
/external/skia/experimental/PdfViewer/pdfparser/native/
DSkPdfNativeObject.cpp32 fStr.fBytes = (uncompressedData.bytesWritten() << 2) + kOwnedStreamBit + in applyFlateDecodeFilter()
34 fStr.fBuffer = (const unsigned char*)new unsigned char[uncompressedData.bytesWritten()]; in applyFlateDecodeFilter()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
DExhaustiveTest.java102 int bytesWritten = 0; in myMultipassTest() local
121 bytesWritten = myCompressor.compress(chars, totalCharsCompressed, in myMultipassTest()
126 totalBytesWritten, bytesWritten); in myMultipassTest()
132 totalBytesWritten += bytesWritten; in myMultipassTest()
/external/icu/icu4c/source/tools/genbrk/
Dgenbrk.cpp311 size_t bytesWritten; in main() local
324 bytesWritten = udata_finish(pData, &status); in main()
330 if (bytesWritten != outDataSize) { in main()
/external/icu/icu4c/source/tools/gencfu/
Dgencfu.cpp264 size_t bytesWritten; in main() local
277 bytesWritten = udata_finish(pData, &status); in main()
283 if (bytesWritten != outDataSize) { in main()
/external/skia/src/utils/
DSkCanvasStateUtils.cpp191 state->clipRects = (ClipRect*) sk_malloc_throw(clipWriter.bytesWritten()); in setup_MC_state()
258 SkASSERT(layerWriter.bytesWritten() == layerCount * sizeof(SkCanvasLayerState)); in CaptureCanvasState()
260 canvasState->layers = (SkCanvasLayerState*) sk_malloc_throw(layerWriter.bytesWritten()); in CaptureCanvasState()
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DCodedOutputStreamMicro.java852 final int bytesWritten = limit - position; in writeRawBytes() local
853 System.arraycopy(value, offset, buffer, position, bytesWritten); in writeRawBytes()
854 offset += bytesWritten; in writeRawBytes()
855 length -= bytesWritten; in writeRawBytes()

123