Lines Matching refs:fWriter
29 , fWriter(storage, storageSize) in SkBinaryWriteBuffer()
35 return fWriter.usingInitialStorage(); in usingInitialStorage()
39 fWriter.write32(SkToU32(size)); in writeByteArray()
40 fWriter.writePad(data, size); in writeByteArray()
44 fWriter.writeBool(value); in writeBool()
48 fWriter.writeScalar(value); in writeScalar()
52 fWriter.write32(count); in writeScalarArray()
53 fWriter.write(value, count * sizeof(SkScalar)); in writeScalarArray()
57 fWriter.write32(value); in writeInt()
61 fWriter.write32(count); in writeIntArray()
62 fWriter.write(value, count * sizeof(int32_t)); in writeIntArray()
66 fWriter.write32(value); in writeUInt()
70 fWriter.writeString(value); in writeString()
74 fWriter.write32(color); in writeColor()
78 fWriter.write32(count); in writeColorArray()
79 fWriter.write(color, count * sizeof(SkColor)); in writeColorArray()
83 fWriter.write(&color, sizeof(SkColor4f)); in writeColor4f()
87 fWriter.write32(count); in writeColor4fArray()
88 fWriter.write(color, count * sizeof(SkColor4f)); in writeColor4fArray()
92 fWriter.writeScalar(point.fX); in writePoint()
93 fWriter.writeScalar(point.fY); in writePoint()
101 fWriter.write32(count); in writePointArray()
102 fWriter.write(point, count * sizeof(SkPoint)); in writePointArray()
106 fWriter.writeMatrix(matrix); in writeMatrix()
110 fWriter.write(&rect, sizeof(SkIRect)); in writeIRect()
114 fWriter.writeRect(rect); in writeRect()
118 fWriter.writeRegion(region); in writeRegion()
122 fWriter.writePath(path); in writePath()
126 fWriter.write32(SkToU32(length)); in writeStream()
127 size_t bytesWritten = fWriter.readFromStream(stream, length); in writeStream()
129 fWriter.reservePad(length - bytesWritten); in writeStream()
135 return fWriter.writeToStream(stream); in writeToStream()
172 fWriter.write32(0); in writeTypeface()
181 fWriter.write32(-ssize); // negative to signal custom in writeTypeface()
189 fWriter.write32(fTFSet ? fTFSet->add(obj) : 0); in writeTypeface()
252 (void)fWriter.reserve(sizeof(uint32_t)); in writeFlattenable()
254 size_t offset = fWriter.bytesWritten(); in writeFlattenable()
257 size_t objSize = fWriter.bytesWritten() - offset; in writeFlattenable()
259 fWriter.overwriteTAt(offset - sizeof(uint32_t), SkToU32(objSize)); in writeFlattenable()