Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 1225) sorted by relevance

12345678910>>...49

/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstbytewriter.h31 #define GST_BYTE_WRITER(writer) ((GstByteWriter *) (writer)) argument
64 void gst_byte_writer_init (GstByteWriter *writer);
67 void gst_byte_writer_init_with_size (GstByteWriter *writer, guint size, gboolean fixed);
70 void gst_byte_writer_init_with_data (GstByteWriter *writer, guint8 *data,
73 void gst_byte_writer_free (GstByteWriter *writer);
76 guint8 * gst_byte_writer_free_and_get_data (GstByteWriter *writer);
79 GstBuffer * gst_byte_writer_free_and_get_buffer (GstByteWriter *writer) G_GNUC_MALLOC;
82 void gst_byte_writer_reset (GstByteWriter *writer);
85 guint8 * gst_byte_writer_reset_and_get_data (GstByteWriter *writer);
88 GstBuffer * gst_byte_writer_reset_and_get_buffer (GstByteWriter *writer) G_GNUC_MALLOC;
[all …]
Dgstbytewriter.c147 gst_byte_writer_init (GstByteWriter * writer) in gst_byte_writer_init() argument
149 g_return_if_fail (writer != NULL); in gst_byte_writer_init()
151 memset (writer, 0, sizeof (GstByteWriter)); in gst_byte_writer_init()
153 writer->owned = TRUE; in gst_byte_writer_init()
165 gst_byte_writer_init_with_size (GstByteWriter * writer, guint size, in gst_byte_writer_init_with_size() argument
168 g_return_if_fail (writer != NULL); in gst_byte_writer_init_with_size()
170 gst_byte_writer_init (writer); in gst_byte_writer_init_with_size()
172 writer->parent.data = g_malloc (size); in gst_byte_writer_init_with_size()
173 writer->alloc_size = size; in gst_byte_writer_init_with_size()
174 writer->fixed = fixed; in gst_byte_writer_init_with_size()
[all …]
/third_party/protobuf/js/experimental/runtime/kernel/
Dwriter_test.js55 const writer = new Writer(); constant
56 expect(writer.getAndResetResultBuffer()).toEqual(createArrayBuffer());
60 const writer = new Writer(); constant
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.writeTag(0x10000000, WireType.VARINT);
69 expect(writer.getAndResetResultBuffer())
72 writer.writeTag(0x1FFFFFFF, WireType.VARINT);
[all …]
/third_party/gstreamer/gstreamer/tests/check/libs/
Dbytewriter.c34 GstByteWriter writer, *writer2; in GST_START_TEST() local
38 gst_byte_writer_init_with_size (&writer, 24, FALSE); in GST_START_TEST()
39 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 0); in GST_START_TEST()
40 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 0); in GST_START_TEST()
41 fail_unless_equals_int (gst_byte_writer_get_remaining (&writer), -1); in GST_START_TEST()
43 (&writer)), 0); in GST_START_TEST()
44 gst_byte_writer_reset (&writer); in GST_START_TEST()
47 gst_byte_writer_init_with_data (&writer, data, sizeof (sdata), FALSE); in GST_START_TEST()
48 fail_unless_equals_int (gst_byte_writer_get_pos (&writer), 0); in GST_START_TEST()
49 fail_unless_equals_int (gst_byte_writer_get_size (&writer), 0); in GST_START_TEST()
[all …]
Dbitwriter.c36 GstBitWriter writer; in GST_START_TEST() local
41 gst_bit_writer_init_with_size (&writer, 4, FALSE); in GST_START_TEST()
43 fail_unless_equals_int (gst_bit_writer_get_remaining (&writer), 2048); in GST_START_TEST()
44 fail_unless_equals_int (gst_bit_writer_get_size (&writer), 0); in GST_START_TEST()
45 fail_unless_equals_int (gst_bit_writer_set_pos (&writer, 32), 1); in GST_START_TEST()
46 fail_unless_equals_int (gst_bit_writer_get_size (&writer), 32); in GST_START_TEST()
47 fail_unless_equals_int (gst_bit_writer_get_remaining (&writer), 2048 - 32); in GST_START_TEST()
48 gst_bit_writer_reset (&writer); in GST_START_TEST()
50 gst_bit_writer_init_with_data (&writer, sdata, 8, FALSE); in GST_START_TEST()
54 gst_bit_writer_reset (&writer); in GST_START_TEST()
[all …]
/third_party/gettext/gnulib-local/lib/libxml/
Dxmlwriter.c135 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
147 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
149 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
504 xmlFreeTextWriter(xmlTextWriterPtr writer) in xmlFreeTextWriter() argument
506 if (writer == NULL) in xmlFreeTextWriter()
509 if (writer->out != NULL) in xmlFreeTextWriter()
510 xmlOutputBufferClose(writer->out); in xmlFreeTextWriter()
512 if (writer->nodes != NULL) in xmlFreeTextWriter()
513 xmlListDelete(writer->nodes); in xmlFreeTextWriter()
515 if (writer->nsstack != NULL) in xmlFreeTextWriter()
[all …]
Dxmlwriter.in.h74 XMLPUBFUN void XMLCALL xmlFreeTextWriter(xmlTextWriterPtr writer);
85 xmlTextWriterStartDocument(xmlTextWriterPtr writer,
90 writer);
96 writer);
97 XMLPUBFUN int XMLCALL xmlTextWriterEndComment(xmlTextWriterPtr writer);
99 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer,
103 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer,
108 writer,
116 xmlTextWriterStartElement(xmlTextWriterPtr writer,
119 writer,
[all …]
/third_party/libxml2/
Dxmlwriter.c108 static int xmlTextWriterOutputNSDecl(xmlTextWriterPtr writer);
120 static int xmlTextWriterWriteIndent(xmlTextWriterPtr writer);
122 xmlTextWriterHandleStateDependencies(xmlTextWriterPtr writer,
477 xmlFreeTextWriter(xmlTextWriterPtr writer) in xmlFreeTextWriter() argument
479 if (writer == NULL) in xmlFreeTextWriter()
482 if (writer->out != NULL) in xmlFreeTextWriter()
483 xmlOutputBufferClose(writer->out); in xmlFreeTextWriter()
485 if (writer->nodes != NULL) in xmlFreeTextWriter()
486 xmlListDelete(writer->nodes); in xmlFreeTextWriter()
488 if (writer->nsstack != NULL) in xmlFreeTextWriter()
[all …]
/third_party/node/src/
Dnode_report.cc63 static void PrintVersionInformation(JSONWriter* writer);
64 static void PrintJavaScriptErrorStack(JSONWriter* writer,
68 static void PrintJavaScriptErrorProperties(JSONWriter* writer,
71 static void PrintNativeStack(JSONWriter* writer);
72 static void PrintResourceUsage(JSONWriter* writer);
73 static void PrintGCStatistics(JSONWriter* writer, Isolate* isolate);
74 static void PrintSystemInformation(JSONWriter* writer);
75 static void PrintLoadedLibraries(JSONWriter* writer);
76 static void PrintComponentVersions(JSONWriter* writer);
77 static void PrintRelease(JSONWriter* writer);
[all …]
/third_party/flutter/skia/tools/debugger/
DDrawCommand.cpp257 void DrawCommand::toJSON(SkJSONWriter& writer, UrlDataManager& urlDataManager) const { in toJSON() argument
258 writer.appendString(DEBUGCANVAS_ATTRIBUTE_COMMAND, this->GetCommandString(fOpType)); in toJSON()
259 writer.appendBool(DEBUGCANVAS_ATTRIBUTE_VISIBLE, this->isVisible()); in toJSON()
428 void apply_paint_blend_mode(const SkPaint& paint, SkJSONWriter& writer) { in apply_paint_blend_mode() argument
432 writer.appendString(DEBUGCANVAS_ATTRIBUTE_BLENDMODE, in apply_paint_blend_mode()
439 void DrawCommand::MakeJsonColor(SkJSONWriter& writer, const SkColor color) { in MakeJsonColor() argument
440 writer.beginArray(nullptr, false); in MakeJsonColor()
441 writer.appendS32(SkColorGetA(color)); in MakeJsonColor()
442 writer.appendS32(SkColorGetR(color)); in MakeJsonColor()
443 writer.appendS32(SkColorGetG(color)); in MakeJsonColor()
[all …]
/third_party/vk-gl-cts/framework/qphelper/
DqpXmlWriter.c46 static deBool writeEscaped (qpXmlWriter* writer, const char* str) in writeEscaped() argument
113 fprintf(writer->outputFile, "%s", buf); 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
[all …]
/third_party/libxml2/doc/examples/
DtestWriter.c72 xmlTextWriterPtr writer; in testXmlwriterFilename() local
76 writer = xmlNewTextWriterFilename(uri, 0); in testXmlwriterFilename()
77 if (writer == NULL) { in testXmlwriterFilename()
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
133 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterFilename()
143 rc = xmlTextWriterWriteFormatComment(writer, in testXmlwriterFilename()
[all …]
/third_party/skia/tools/debugger/
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.appendS32(SkColorGetG(color)); in MakeJsonColor()
[all …]
/third_party/flatbuffers/src/
Didl_gen_kotlin.cpp259 void GenEnum(EnumDef &enum_def, CodeWriter &writer) const { in GenEnum()
262 GenerateComment(enum_def.doc_comment, writer, &comment_config); in GenEnum()
264 writer += "@Suppress(\"unused\")"; in GenEnum()
265 writer += "@ExperimentalUnsignedTypes"; in GenEnum()
266 writer += "class " + Esc(enum_def.name) + " private constructor() {"; in GenEnum()
267 writer.IncrementIdentLevel(); in GenEnum()
269 GenerateCompanionObject(writer, [&]() { in GenEnum()
277 writer.SetValue("name", Esc(ev.name)); in GenEnum()
278 writer.SetValue("type", field_type); in GenEnum()
279 writer.SetValue("val", val + suffix); in GenEnum()
[all …]
/third_party/gn/src/gn/
Dvisual_studio_writer_unittest.cc32 VisualStudioWriter writer(setup_.build_settings(), "Win32", in TEST_F() local
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.folders_[0]->path); in TEST_F()
[all …]
/third_party/flutter/skia/tests/
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() local
28 writer.reserve(40); in test_reserve()
33 SkWriter32 writer(storage, sizeof(storage)); in test_string_null() local
36 writer.writeString(nullptr); in test_string_null()
38 check_contents(reporter, writer, expected, sizeof(expected)); in test_string_null()
42 SkSWriter32<32> writer; in test_rewind() local
45 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten()); in test_rewind()
[all …]
/third_party/skia/src/gpu/
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->appendBool("Uses precision modifiers", fUsesPrecisionModifiers); in dumpJSON()
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs146 var writer = new StringWriter(); in Format()
147 Format(message, writer); in Format()
148 return writer.ToString(); in Format()
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, IMessage message) in WriteMessage() argument
199 WriteNull(writer); in WriteMessage()
207 writer.Write(customDiagnosticMessage.ToDiagnosticString()); in WriteMessage()
[all …]
/third_party/flutter/skia/src/gpu/
DGrShaderCaps.cpp79 void GrShaderCaps::dumpJSON(SkJSONWriter* writer) const { in dumpJSON()
80 writer->beginObject(); in dumpJSON()
82 writer->appendBool("Shader Derivative Support", fShaderDerivativeSupport); in dumpJSON()
83 writer->appendBool("Geometry Shader Support", fGeometryShaderSupport); in dumpJSON()
84 writer->appendBool("Geometry Shader Invocations Support", fGSInvocationsSupport); in dumpJSON()
85 writer->appendBool("Path Rendering Support", fPathRenderingSupport); in dumpJSON()
86 writer->appendBool("Dst Read In Shader Support", fDstReadInShaderSupport); in dumpJSON()
87 writer->appendBool("Dual Source Blending Support", fDualSourceBlendingSupport); in dumpJSON()
88 writer->appendBool("Integer Support", fIntegerSupport); in dumpJSON()
102 writer->appendBool("FB Fetch Support", fFBFetchSupport); in dumpJSON()
[all …]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dwriter_test.js61 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.writeInt32(1, Infinity);});
78 assertFails(function() {writer.writeInt64(1, -Infinity);});
79 assertFails(function() {writer.writeInt64(1, Infinity);});
81 assertFails(function() {writer.writeUint32(1, -1);});
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dwriter_test.js61 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.writeInt32(1, Infinity);});
78 assertFails(function() {writer.writeInt64(1, -Infinity);});
79 assertFails(function() {writer.writeInt64(1, Infinity);});
81 assertFails(function() {writer.writeUint32(1, -1);});
[all …]
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/
DBitIOWriterTest.java34 BitIOWriter writer = new BitIOWriter(); in testBitIOBit() local
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.writeBit(1); in testBitIOBit()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/conversion/eot/
DBitIOWriterTest.java34 BitIOWriter writer = new BitIOWriter(); in testBitIOBit() local
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.writeBit(1); in testBitIOBit()
[all …]
/third_party/skia/tests/
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() local
28 writer.reserve(40); in test_reserve()
33 SkWriter32 writer(storage, sizeof(storage)); in test_string_null() local
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.writeInt(i); in test_rewind()
[all …]
/third_party/libxml2/include/libxml/
Dxmlwriter.h45 XMLPUBFUN void XMLCALL xmlFreeTextWriter(xmlTextWriterPtr writer);
56 xmlTextWriterStartDocument(xmlTextWriterPtr writer,
61 writer);
67 writer);
68 XMLPUBFUN int XMLCALL xmlTextWriterEndComment(xmlTextWriterPtr writer);
70 xmlTextWriterWriteFormatComment(xmlTextWriterPtr writer,
74 xmlTextWriterWriteVFormatComment(xmlTextWriterPtr writer,
79 writer,
87 xmlTextWriterStartElement(xmlTextWriterPtr writer,
90 writer,
[all …]

12345678910>>...49