Home
last modified time | relevance | path

Searched refs:writer (Results 1 - 25 of 747) sorted by relevance

12345678910>>...30

/third_party/protobuf/js/experimental/runtime/kernel/
H A Dwriter_test.js2 * @fileoverview Tests for writer.js.
9 // Since the writer behavior changes with the checking level some of the tests
55 const writer = new Writer();
56 expect(writer.getAndResetResultBuffer()).toEqual(createArrayBuffer());
60 const writer = new Writer();
61 writer.writeTag(1, WireType.VARINT);
62 expect(writer.getAndResetResultBuffer()).toEqual(createArrayBuffer(0x08));
64 writer.writeTag(0x0FFFFFFF, WireType.VARINT);
65 expect(writer.getAndResetResultBuffer())
68 writer
[all...]
H A Dkernel.js265 * @param {!Writer} writer
269 function writeMessage(writer, fieldNumber, value) {
270 writer.writeDelimited(
275 * @param {!Writer} writer
279 function writeGroup(writer, fieldNumber, value) {
281 writer.writeStartGroup(fieldNumber);
282 kernel.serializeToWriter(writer);
283 writer.writeEndGroup(fieldNumber);
287 * Writes the array of Messages into the writer for the given field number.
288 * @param {!Writer} writer
[all...]
/third_party/gn/src/gn/
H A Dvisual_studio_writer_unittest.cc32 VisualStudioWriter writer(setup_.build_settings(), "Win32", in TEST_F()
38 writer.projects_.push_back( in TEST_F()
44 writer.projects_.push_back( in TEST_F()
50 writer.projects_.push_back( in TEST_F()
56 writer.projects_.push_back( in TEST_F()
61 writer.ResolveSolutionFolders(); in TEST_F()
63 ASSERT_EQ(MakeTestPath("/foo/chromium/src"), writer.root_folder_path_); in TEST_F()
65 ASSERT_EQ(4u, writer.folders_.size()); in TEST_F()
67 ASSERT_EQ("base", writer.folders_[0]->name); in TEST_F()
68 ASSERT_EQ(MakeTestPath("/foo/chromium/src/base"), writer in TEST_F()
[all...]
H A Dpath_output_unittest.cc18 PathOutput writer(build_dir, source_root, ESCAPE_NONE); in TEST()
22 writer.WriteFile(out, SourceFile("//foo/bar.cc")); in TEST()
28 writer.WriteFile(out, SourceFile("//foo.cc")); in TEST()
34 writer.WriteFile(out, SourceFile("//out/Debug/foo.cc")); in TEST()
36 writer.WriteFile(out, SourceFile("//out/Debug/bar/baz.cc")); in TEST()
43 writer.WriteFile(out, SourceFile("/C:/foo/bar.cc")); in TEST()
50 writer.WriteFile(out, SourceFile("/foo/bar.cc")); in TEST()
60 PathOutput writer(build_dir, source_root, ESCAPE_NONE); in TEST()
64 writer.WriteFile(out, SourceFile("//foo/bar.cc")); in TEST()
70 writer in TEST()
[all...]
/third_party/skia/src/gpu/
H A DGrShaderCaps.cpp87 void GrShaderCaps::dumpJSON(SkJSONWriter* writer) const { in dumpJSON()
88 writer->beginObject(); in dumpJSON()
90 writer->appendBool("Shader Derivative Support", fShaderDerivativeSupport); in dumpJSON()
91 writer->appendBool("Dst Read In Shader Support", fDstReadInShaderSupport); in dumpJSON()
92 writer->appendBool("Dual Source Blending Support", fDualSourceBlendingSupport); in dumpJSON()
93 writer->appendBool("Integer Support", fIntegerSupport); in dumpJSON()
94 writer->appendBool("Nonsquare Matrix Support", fNonsquareMatrixSupport); in dumpJSON()
95 writer->appendBool("Inverse Hyperbolic Support", fInverseHyperbolicSupport); in dumpJSON()
107 writer->appendBool("FB Fetch Support", fFBFetchSupport); in dumpJSON()
108 writer in dumpJSON()
[all...]
H A DGrAuditTrail.cpp142 void GrAuditTrail::JsonifyTArray(SkJSONWriter& writer, const char* name, const T& array) {
144 writer.beginArray(name);
148 array[i]->toJson(writer);
151 writer.endArray();
155 void GrAuditTrail::toJson(SkJSONWriter& writer) const {
156 writer.beginObject();
157 JsonifyTArray(writer, "Ops", fOpsTask);
158 writer.endObject();
161 void GrAuditTrail::toJson(SkJSONWriter& writer, int clientID) const {
162 writer
[all...]
H A DGrCaps.cpp196 void GrCaps::dumpJSON(SkJSONWriter* writer) const { in dumpJSON()
197 writer->beginObject(); in dumpJSON()
199 writer->appendBool("MIP Map Support", fMipmapSupport); in dumpJSON()
200 writer->appendBool("NPOT Texture Tile Support", fNPOTTextureTileSupport); in dumpJSON()
201 writer->appendBool("Reuse Scratch Textures", fReuseScratchTextures); in dumpJSON()
202 writer->appendBool("Reuse Scratch Buffers", fReuseScratchBuffers); in dumpJSON()
203 writer->appendBool("Gpu Tracing Support", fGpuTracingSupport); in dumpJSON()
204 writer->appendBool("Oversized Stencil Support", fOversizedStencilSupport); in dumpJSON()
205 writer->appendBool("Texture Barrier Support", fTextureBarrierSupport); in dumpJSON()
206 writer in dumpJSON()
[all...]
/third_party/skia/tools/debugger/
H A DDrawCommand.cpp258 void DrawCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() argument
259 writer.appendString(DEBUGCANVAS_ATTRIBUTE_COMMAND, this->GetCommandString(fOpType)); in toJSON()
260 writer.appendBool(DEBUGCANVAS_ATTRIBUTE_VISIBLE, this->isVisible()); in toJSON()
382 void apply_paint_blend_mode(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_blend_mode() argument
386 writer.appendString(DEBUGCANVAS_ATTRIBUTE_BLENDMODE, in apply_paint_blend_mode()
393 void DrawCommand::MakeJsonColor(SkJSONWriter& writer, const SkColor color) { in MakeJsonColor() argument
394 writer.beginArray(nullptr, false); in MakeJsonColor()
395 writer.appendS32(SkColorGetA(color)); in MakeJsonColor()
396 writer.appendS32(SkColorGetR(color)); in MakeJsonColor()
397 writer in MakeJsonColor()
402 MakeJsonColor4f(SkJSONWriter& writer, const SkColor4f& color) MakeJsonColor4f() argument
411 MakeJsonPoint(SkJSONWriter& writer, const SkPoint& point) MakeJsonPoint() argument
418 MakeJsonPoint(SkJSONWriter& writer, SkScalar x, SkScalar y) MakeJsonPoint() argument
425 MakeJsonPoint3(SkJSONWriter& writer, const SkPoint3& point) MakeJsonPoint3() argument
433 MakeJsonRect(SkJSONWriter& writer, const SkRect& rect) MakeJsonRect() argument
442 MakeJsonIRect(SkJSONWriter& writer, const SkIRect& rect) MakeJsonIRect() argument
451 make_json_rrect(SkJSONWriter& writer, const SkRRect& rrect) make_json_rrect() argument
461 MakeJsonMatrix(SkJSONWriter& writer, const SkMatrix& matrix) MakeJsonMatrix() argument
473 MakeJsonMatrix44(SkJSONWriter& writer, const SkM44& matrix) MakeJsonMatrix44() argument
485 MakeJsonPath(SkJSONWriter& writer, const SkPath& path) MakeJsonPath() argument
558 MakeJsonRegion(SkJSONWriter& writer, const SkRegion& region) MakeJsonRegion() argument
582 store_scalar(SkJSONWriter& writer, const char* key, SkScalar value, SkScalar defaultValue) store_scalar() argument
591 store_bool(SkJSONWriter& writer, const char* key, bool value, bool defaultValue) store_bool() argument
605 flatten(const SkFlattenable* flattenable, SkJSONWriter& writer, UrlDataManager& urlDataManager) flatten() argument
636 flatten(const SkImage& image, SkJSONWriter& writer, UrlDataManager& urlDataManager) flatten() argument
707 flatten(const SkBitmap& bitmap, SkJSONWriter& writer, UrlDataManager& urlDataManager) flatten() argument
718 apply_font_hinting(const SkFont& font, SkJSONWriter& writer) apply_font_hinting() argument
738 apply_font_edging(const SkFont& font, SkJSONWriter& writer) apply_font_edging() argument
752 apply_paint_color(const SkPaint& paint, SkJSONWriter& writer) apply_paint_color() argument
760 apply_paint_style(const SkPaint& paint, SkJSONWriter& writer) apply_paint_style() argument
777 apply_paint_cap(const SkPaint& paint, SkJSONWriter& writer) apply_paint_cap() argument
795 apply_paint_join(const SkPaint& paint, SkJSONWriter& writer) apply_paint_join() argument
813 apply_paint_maskfilter(const SkPaint& paint, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_paint_maskfilter() argument
846 apply_paint_patheffect(const SkPaint& paint, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_paint_patheffect() argument
873 apply_font_typeface(const SkFont& font, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_font_typeface() argument
891 apply_flattenable(const char* key, SkFlattenable* flattenable, SkJSONWriter& writer, UrlDataManager& urlDataManager) apply_flattenable() argument
902 MakeJsonPaint(SkJSONWriter& writer, const SkPaint& paint, UrlDataManager& urlDataManager) MakeJsonPaint() argument
929 MakeJsonFont(const SkFont& font, SkJSONWriter& writer, UrlDataManager& urlDataManager) MakeJsonFont() argument
946 MakeJsonLattice(SkJSONWriter& writer, const SkCanvas::Lattice& lattice) MakeJsonLattice() argument
983 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1003 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1019 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1035 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1060 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1083 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1100 writeMatrixType(SkJSONWriter& writer, const SkMatrix& m) writeMatrixType() argument
1120 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1133 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1150 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1201 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1260 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1308 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1360 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1410 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1451 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1474 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1494 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1513 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1534 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1622 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1662 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1741 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1773 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1797 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1823 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
1848 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
2010 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
2037 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
2050 toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const toJSON() argument
[all...]
/third_party/node/src/
H A Dnode_report.cc64 static void PrintVersionInformation(JSONWriter* writer);
65 static void PrintJavaScriptErrorStack(JSONWriter* writer,
69 static void PrintEmptyJavaScriptStack(JSONWriter* writer);
70 static void PrintJavaScriptStack(JSONWriter* writer,
73 static void PrintJavaScriptErrorProperties(JSONWriter* writer,
76 static void PrintNativeStack(JSONWriter* writer);
77 static void PrintResourceUsage(JSONWriter* writer);
78 static void PrintGCStatistics(JSONWriter* writer, Isolate* isolate);
79 static void PrintSystemInformation(JSONWriter* writer);
80 static void PrintLoadedLibraries(JSONWriter* writer);
258 PrintVersionInformation(JSONWriter* writer) PrintVersionInformation() argument
312 PrintCpuInfo(JSONWriter* writer) PrintCpuInfo() argument
333 PrintNetworkInterfaceInfo(JSONWriter* writer) PrintNetworkInterfaceInfo() argument
384 PrintJavaScriptErrorProperties(JSONWriter* writer, Isolate* isolate, Local<Value> error) PrintJavaScriptErrorProperties() argument
446 PrintEmptyJavaScriptStack(JSONWriter* writer) PrintEmptyJavaScriptStack() argument
457 PrintJavaScriptStack(JSONWriter* writer, Isolate* isolate, const char* trigger) PrintJavaScriptStack() argument
510 PrintJavaScriptErrorStack(JSONWriter* writer, Isolate* isolate, Local<Value> error, const char* trigger) PrintJavaScriptErrorStack() argument
553 PrintNativeStack(JSONWriter* writer) PrintNativeStack() argument
574 PrintGCStatistics(JSONWriter* writer, Isolate* isolate) PrintGCStatistics() argument
626 PrintResourceUsage(JSONWriter* writer) PrintResourceUsage() argument
713 PrintSystemInformation(JSONWriter* writer) PrintSystemInformation() argument
787 PrintLoadedLibraries(JSONWriter* writer) PrintLoadedLibraries() argument
796 PrintComponentVersions(JSONWriter* writer) PrintComponentVersions() argument
827 PrintRelease(JSONWriter* writer) PrintRelease() argument
[all...]
H A Dnode_report_utils.cc15 JSONWriter* writer) { in ReportEndpoint()
17 writer->json_keyvalue(name, null); in ReportEndpoint()
42 writer->json_objectstart(name); in ReportEndpoint()
44 writer->json_keyvalue("host", host); in ReportEndpoint()
46 writer->json_keyvalue("port", port); in ReportEndpoint()
47 writer->json_objectend(); in ReportEndpoint()
51 static void ReportEndpoints(uv_handle_t* h, JSONWriter* writer) { in ReportEndpoints() argument
68 ReportEndpoint(h, rc == 0 ? addr : nullptr, "localEndpoint", writer); in ReportEndpoints()
80 ReportEndpoint(h, rc == 0 ? addr : nullptr, "remoteEndpoint", writer); in ReportEndpoints()
84 static void ReportPipeEndpoints(uv_handle_t* h, JSONWriter* writer) { in ReportPipeEndpoints() argument
12 ReportEndpoint(uv_handle_t* h, struct sockaddr* addr, const char* name, JSONWriter* writer) ReportEndpoint() argument
119 ReportPath(uv_handle_t* h, JSONWriter* writer) ReportPath() argument
160 JSONWriter* writer = static_cast<JSONWriter*>(arg); WalkHandle() local
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DJsonFormatter.cs146 var writer = new StringWriter(); in Format()
147 Format(message, writer); in Format()
148 return writer.ToString(); in Format()
155 /// <param name="writer">The TextWriter to write the formatted message to.</param>
157 public void Format(IMessage message, TextWriter writer) in Format() argument
160 ProtoPreconditions.CheckNotNull(writer, nameof(writer)); in Format()
164 WriteWellKnownTypeValue(writer, message.Descriptor, message); in Format()
168 WriteMessage(writer, message); in Format()
195 private void WriteMessage(TextWriter writer, IMessag argument
216 WriteMessageFields(TextWriter writer, IMessage message, bool assumeFirstFieldWritten) WriteMessageFields() argument
298 WriteNull(TextWriter writer) WriteNull() argument
358 WriteValue(TextWriter writer, object value) WriteValue() argument
448 WriteWellKnownTypeValue(TextWriter writer, MessageDescriptor descriptor, object value) WriteWellKnownTypeValue() argument
511 WriteTimestamp(TextWriter writer, IMessage value) WriteTimestamp() argument
522 WriteDuration(TextWriter writer, IMessage value) WriteDuration() argument
530 WriteFieldMask(TextWriter writer, IMessage value) WriteFieldMask() argument
536 WriteAny(TextWriter writer, IMessage value) WriteAny() argument
572 WriteDiagnosticOnlyAny(TextWriter writer, IMessage value) WriteDiagnosticOnlyAny() argument
589 WriteStruct(TextWriter writer, IMessage message) WriteStruct() argument
615 WriteStructFieldValue(TextWriter writer, IMessage message) WriteStructFieldValue() argument
646 WriteList(TextWriter writer, IList list) WriteList() argument
662 WriteDictionary(TextWriter writer, IDictionary dictionary) WriteDictionary() argument
708 WriteString(TextWriter writer, string text) WriteString() argument
774 HexEncodeUtf16CodeUnit(TextWriter writer, char c) HexEncodeUtf16CodeUnit() argument
[all...]
/third_party/skia/tests/
H A DWriter32Test.cpp14 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer, in check_contents() argument
17 REPORTER_ASSERT(reporter, writer.bytesWritten() == size); in check_contents()
18 writer.flatten(storage.get()); in check_contents()
27 SkWriter32 writer(storage, sizeof(storage)); in test_reserve()
28 writer.reserve(40); in test_reserve()
33 SkWriter32 writer(storage, sizeof(storage)); in test_string_null()
36 writer.writeString(nullptr); in test_string_null()
38 check_contents(reporter, writer, expected, sizeof(expected)); in test_string_null()
60 SkWriter32 writer; in test_rewind() local
62 writer in test_rewind()
71 test1(skiatest::Reporter* reporter, SkWriter32* writer) test1() argument
85 testWritePad(skiatest::Reporter* reporter, SkWriter32* writer) testWritePad() argument
123 testOverwriteT(skiatest::Reporter* reporter, SkWriter32* writer) testOverwriteT() argument
161 SkWriter32 writer; DEF_TEST() local
172 SkSWriter32<8 * sizeof(intptr_t)> writer; DEF_TEST() local
183 SkSWriter32<1024 * sizeof(intptr_t)> writer; DEF_TEST() local
210 SkSWriter32<1000> writer; DEF_TEST() local
[all...]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Dwriter_test.js32 * @fileoverview Test cases for jspb's binary protocol buffer writer. In
34 * so only writer-specific tests are here.
57 * Verifies that misuse of the writer class triggers assertions.
61 var writer = new jspb.BinaryWriter();
65 writer.writeMessage(-1, dummyMessage, goog.nullFunction);
69 writer = new jspb.BinaryWriter();
70 assertFails(function() {writer.writeUint64(-1, 1);});
73 writer = new jspb.BinaryWriter();
75 assertFails(function() {writer.writeInt32(1, -Infinity);});
76 assertFails(function() {writer
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Dwriter_test.js32 * @fileoverview Test cases for jspb's binary protocol buffer writer. In
34 * so only writer-specific tests are here.
57 * Verifies that misuse of the writer class triggers assertions.
61 var writer = new jspb.BinaryWriter();
65 writer.writeMessage(-1, dummyMessage, goog.nullFunction);
69 writer = new jspb.BinaryWriter();
70 assertFails(function() {writer.writeUint64(-1, 1);});
73 writer = new jspb.BinaryWriter();
75 assertFails(function() {writer.writeInt32(1, -Infinity);});
76 assertFails(function() {writer
[all...]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/
H A DBitIOWriterTest.java34 BitIOWriter writer = new BitIOWriter(); in testBitIOBit()
35 writer.writeBit(1); in testBitIOBit()
36 writer.writeBit(0); in testBitIOBit()
37 writer.writeBit(1); in testBitIOBit()
38 writer.writeBit(1); in testBitIOBit()
39 writer.writeBit(0); in testBitIOBit()
40 writer.writeBit(0); in testBitIOBit()
41 writer.writeBit(1); in testBitIOBit()
42 writer.writeBit(0); in testBitIOBit()
43 writer in testBitIOBit()
[all...]
H A DMagnitudeDependentWriterTest.java35 MagnitudeDependentWriter writer = new MagnitudeDependentWriter(); in testMagnitudeDependent()
36 writer.writeValue(0); in testMagnitudeDependent()
37 writer.writeValue(0); in testMagnitudeDependent()
38 writer.writeValue(0); in testMagnitudeDependent()
39 writer.writeValue(0); in testMagnitudeDependent()
40 writer.writeValue(1); in testMagnitudeDependent()
41 writer.writeValue(1); in testMagnitudeDependent()
42 writer.writeValue(0); in testMagnitudeDependent()
43 writer.writeValue(1); in testMagnitudeDependent()
44 writer in testMagnitudeDependent()
[all...]
/third_party/vk-gl-cts/framework/qphelper/
H A DqpXmlWriter.c46 static deBool writeEscaped (qpXmlWriter* writer, const char* str) in writeEscaped() argument
113 fputs(buf, writer->outputFile); in writeEscaped()
118 if (writer->flushAfterWrite) in writeEscaped()
119 fflush(writer->outputFile); in writeEscaped()
126 qpXmlWriter* writer = (qpXmlWriter*)deCalloc(sizeof(qpXmlWriter)); in qpXmlWriter_createFileWriter() local
127 if (!writer) in qpXmlWriter_createFileWriter()
132 writer->outputFile = outputFile; in qpXmlWriter_createFileWriter()
133 writer->flushAfterWrite = flushAfterWrite; in qpXmlWriter_createFileWriter()
135 return writer; in qpXmlWriter_createFileWriter()
138 void qpXmlWriter_destroy (qpXmlWriter* writer) in qpXmlWriter_destroy() argument
145 closePending(qpXmlWriter* writer) closePending() argument
156 qpXmlWriter_flush(qpXmlWriter* writer) qpXmlWriter_flush() argument
161 qpXmlWriter_startDocument(qpXmlWriter* writer, deBool writeXmlHeader) qpXmlWriter_startDocument() argument
181 qpXmlWriter_endDocument(qpXmlWriter* writer) qpXmlWriter_endDocument() argument
191 qpXmlWriter_writeString(qpXmlWriter* writer, const char* str) qpXmlWriter_writeString() argument
202 qpXmlWriter_startElement(qpXmlWriter* writer, const char* elementName, int numAttribs, const qpXmlAttribute* attribs) qpXmlWriter_startElement() argument
243 qpXmlWriter_endElement(qpXmlWriter* writer, const char* elementName) qpXmlWriter_endElement() argument
259 qpXmlWriter_writeBase64(qpXmlWriter* writer, const deUint8* data, size_t numBytes) qpXmlWriter_writeBase64() argument
330 qpXmlWriter_writeStringElement(qpXmlWriter* writer, const char* elementName, const char* elementContent) qpXmlWriter_writeStringElement() argument
[all...]
/third_party/node/test/fixtures/wpt/streams/writable-streams/
H A Dwrite.any.js33 const writer = ws.getWriter();
36 return writeArrayToStream(input, writer)
43 const writer = ws.getWriter();
46 return writeArrayToStream(input, writer)
58 const writer = ws.getWriter();
60 const writePromise = writer.write('a');
76 const writer = ws.getWriter();
78 assert_equals(writer.desiredSize, 1, 'desiredSize should be 1');
80 return writer.ready.then(() => {
81 const writePromise = writer
[all...]
H A Dfloating-point-total-queue-size.any.js10 const writer = setupTestStream();
13 writer.write(2),
14 writer.write(Number.MAX_SAFE_INTEGER)
17 assert_equals(writer.desiredSize, 0 - 2 - Number.MAX_SAFE_INTEGER,
21 assert_equals(writer.desiredSize, 0, '[[queueTotalSize]] must clamp to 0 if it becomes negative');
26 const writer = setupTestStream();
29 writer.write(1e-16),
30 writer.write(1)
33 assert_equals(writer.desiredSize, 0 - 1e-16 - 1,
37 assert_equals(writer
[all...]
H A Dreentrant-strategy.any.js13 let writer;
17 writer.write(chunk - 1);
24 writer = ws.getWriter();
25 return writer.write(2)
32 let writer;
38 writer.write(chunk - 1)
39 .then(() => events.push('writer.write done', chunk - 1));
49 writer = ws.getWriter();
50 return writer.write(2)
51 .then(() => events.push('writer
[all...]
/third_party/protobuf/js/binary/
H A Dwriter_test.js32 * @fileoverview Test cases for jspb's binary protocol buffer writer. In
34 * so only writer-specific tests are here.
59 * Verifies that misuse of the writer class triggers assertions.
63 var writer = new jspb.BinaryWriter();
67 writer.writeMessage(-1, dummyMessage, goog.nullFunction);
71 writer = new jspb.BinaryWriter();
72 assertFails(function() {writer.writeUint64(-1, 1);});
75 writer = new jspb.BinaryWriter();
77 assertFails(function() {writer.writeInt32(1, -Infinity);});
78 assertFails(function() {writer
[all...]
/third_party/python/Python/
H A Dast_unparse.c22 append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level);
24 append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec);
26 append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e);
28 append_ast_slice(_PyUnicodeWriter *writer, expr_ty e);
31 append_charp(_PyUnicodeWriter *writer, const char *charp) in append_charp() argument
33 return _PyUnicodeWriter_WriteASCIIString(writer, charp, -1); in append_charp()
37 return append_charp(writer, (str)); \
41 if (-1 == append_charp(writer, (str))) { \
47 if ((cond) && -1 == append_charp(writer, (str))) { \
58 if (-1 == append_ast_expr(writer, (exp
70 append_repr(_PyUnicodeWriter *writer, PyObject *obj) append_repr() argument
122 append_ast_boolop(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_boolop() argument
144 append_ast_binop(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_binop() argument
179 append_ast_unaryop(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_unaryop() argument
203 append_ast_arg(_PyUnicodeWriter *writer, arg_ty arg) append_ast_arg() argument
216 append_ast_args(_PyUnicodeWriter *writer, arguments_ty args) append_ast_args() argument
282 append_ast_lambda(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_lambda() argument
296 append_ast_ifexp(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_ifexp() argument
309 append_ast_dict(_PyUnicodeWriter *writer, expr_ty e) append_ast_dict() argument
335 append_ast_set(_PyUnicodeWriter *writer, expr_ty e) append_ast_set() argument
350 append_ast_list(_PyUnicodeWriter *writer, expr_ty e) append_ast_list() argument
365 append_ast_tuple(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_tuple() argument
388 append_ast_comprehension(_PyUnicodeWriter *writer, comprehension_ty gen) append_ast_comprehension() argument
406 append_ast_comprehensions(_PyUnicodeWriter *writer, asdl_comprehension_seq *comprehensions) append_ast_comprehensions() argument
419 append_ast_genexp(_PyUnicodeWriter *writer, expr_ty e) append_ast_genexp() argument
428 append_ast_listcomp(_PyUnicodeWriter *writer, expr_ty e) append_ast_listcomp() argument
437 append_ast_setcomp(_PyUnicodeWriter *writer, expr_ty e) append_ast_setcomp() argument
446 append_ast_dictcomp(_PyUnicodeWriter *writer, expr_ty e) append_ast_dictcomp() argument
457 append_ast_compare(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_compare() argument
521 append_ast_keyword(_PyUnicodeWriter *writer, keyword_ty kw) append_ast_keyword() argument
539 append_ast_call(_PyUnicodeWriter *writer, expr_ty e) append_ast_call() argument
588 append_fstring_unicode(_PyUnicodeWriter *writer, PyObject *unicode) append_fstring_unicode() argument
601 append_fstring_element(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec) append_fstring_element() argument
643 append_joinedstr(_PyUnicodeWriter *writer, expr_ty e, bool is_format_spec) append_joinedstr() argument
666 append_formattedvalue(_PyUnicodeWriter *writer, expr_ty e) append_formattedvalue() argument
724 append_ast_constant(_PyUnicodeWriter *writer, PyObject *constant) append_ast_constant() argument
746 append_ast_attribute(_PyUnicodeWriter *writer, expr_ty e) append_ast_attribute() argument
766 append_ast_slice(_PyUnicodeWriter *writer, expr_ty e) append_ast_slice() argument
786 append_ast_subscript(_PyUnicodeWriter *writer, expr_ty e) append_ast_subscript() argument
795 append_ast_starred(_PyUnicodeWriter *writer, expr_ty e) append_ast_starred() argument
803 append_ast_yield(_PyUnicodeWriter *writer, expr_ty e) append_ast_yield() argument
815 append_ast_yield_from(_PyUnicodeWriter *writer, expr_ty e) append_ast_yield_from() argument
823 append_ast_await(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_await() argument
833 append_named_expr(_PyUnicodeWriter *writer, expr_ty e, int level) append_named_expr() argument
844 append_ast_expr(_PyUnicodeWriter *writer, expr_ty e, int level) append_ast_expr() argument
929 _PyUnicodeWriter writer; expr_as_unicode() local
[all...]
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/
H A DBuildMetadataProtoFromXml.java250 ClassWriter writer = new ClassWriter(outputDir, mappingClass, copyright); in writeCountryCallingCodeMappingToJavaFile()
254 writeMap(writer, capacity, countryCodeToRegionCodeMap); in writeCountryCallingCodeMappingToJavaFile()
256 writeCountryCodeSet(writer, capacity, countryCodeToRegionCodeMap.keySet()); in writeCountryCallingCodeMappingToJavaFile()
260 writeRegionCodeSet(writer, capacity, regionCodeList); in writeCountryCallingCodeMappingToJavaFile()
263 writer.writeToFile(); in writeCountryCallingCodeMappingToJavaFile()
266 private static void writeMap(ClassWriter writer, int capacity, in writeMap() argument
268 writer.addToBody(MAP_COMMENT); in writeMap()
270 writer.addToImports("java.util.ArrayList"); in writeMap()
271 writer.addToImports("java.util.HashMap"); in writeMap()
272 writer in writeMap()
300 writeRegionCodeSet(ClassWriter writer, int capacity, List<String> regionCodeList) writeRegionCodeSet() argument
321 writeCountryCodeSet(ClassWriter writer, int capacity, Set<Integer> countryCodeSet) writeCountryCodeSet() argument
349 private final Writer writer; global() field in BuildMetadataProtoFromXml.ClassWriter
[all...]
/third_party/skia/dm/
H A DDMJsonWriter.cpp44 SkJSONWriter writer(&stream, SkJSONWriter::Mode::kPretty); in DumpJson()
46 writer.beginObject(); // root in DumpJson()
49 writer.appendString(properties[i-1], properties[i]); in DumpJson()
52 writer.beginObject("key"); in DumpJson()
54 writer.appendString(key[i-1], key[i]); in DumpJson()
56 writer.endObject(); in DumpJson()
60 writer.appendS32("max_rss_MB", maxResidentSetSizeMB); in DumpJson()
65 writer.beginArray("results"); in DumpJson()
67 writer.beginObject(); in DumpJson()
69 writer in DumpJson()
[all...]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
H A DLigatureTreeWalker.java80 protected void writeCoverageTable(OpenTypeTableWriter writer) in writeCoverageTable() argument
84 writer.writeData(1); in writeCoverageTable()
85 writer.writeData(ligatureSetCount); in writeCoverageTable()
88 writer.writeData(firstComponentChar(set)); in writeCoverageTable()
92 public void writeLookupSubtable(OpenTypeTableWriter writer) in writeLookupSubtable() argument
95 int ligatureSubstitutionBase = writer.getOutputIndex(); in writeLookupSubtable()
100 writer.writeData(1); // substFormat in writeLookupSubtable()
102 coverageOffset = writer.getOutputIndex(); in writeLookupSubtable()
103 writer.writeData(0); // coverageTableOffset (will fix later) in writeLookupSubtable()
105 writer in writeLookupSubtable()
[all...]

Completed in 11 milliseconds

12345678910>>...30