Lines Matching defs:sink
5406 * sink->StartString(FOO_FIELD_START_STRING, ...)
5408 * sink->StartString(FOO_FIELD, ...)
5430 * Handlers it will be bound to, so when it calls sink->StartString() what
5443 Sink(const upb_sink& sink) : sink_(sink) {}
5444 Sink &operator=(const upb_sink &sink) {
5445 sink_ = sink;
5449 upb_sink sink() { return sink_; }
5451 /* Constructs a new sink for the given frozen handlers and closure.
5461 /* Resets the value of the sink. */
5466 /* Returns the top-level object that is bound to this sink.
5474 /* Functions for pushing data into the sink.
5479 * These may not be called from within one of the same sink's handlers (in
5485 * sink->StartSubMessage(startsubmsg_selector);
5486 * sink->StartMessage();
5488 * sink->EndMessage(&status);
5489 * sink->EndSubMessage(endsubmsg_selector); */
5529 * For StartString(), the function will write a sink for the string to "sub."
5530 * The sub-sink must be used for any/all PutStringBuffer() calls. */
5549 * For StartSubMessage(), the function will write a sink for the string to
5550 * "sub." The sub-sink must be used for any/all handlers called within the
5566 * For StartSequence(), the function will write a sink for the string to
5567 * "sub." The sub-sink must be used for any/all handlers called within the
5652 BytesSink(const upb_bytessink& sink) : sink_(sink) {}
5653 BytesSink &operator=(const upb_bytessink &sink) {
5654 sink_ = sink;
5658 upb_bytessink sink() { return sink_; }
5660 /* Constructs a new sink for the given frozen handlers and closure.
5668 /* Resets the value of the sink. */
5698 bool upb_bufsrc_putbuf(const char *buf, size_t len, upb_bytessink sink);
5704 template <class T> bool PutBuffer(const T& str, BytesSink sink) {
5705 return upb_bufsrc_putbuf(str.data(), str.size(), sink.sink());
5784 * This method is only capable of outputting to a sink that uses these
5834 /* A Decoder receives binary protobuf data on its input sink and pushes the
5835 * decoded data to its output sink. */
5847 * The sink must match the given method. */
5851 output.sink(), status->ptr()));
5859 /* The sink on which this decoder receives input. */
6059 * doesn't need at all; the upb_handlers* inside the sink and
6063 upb_sink sink;
6112 /* Our input sink. */
6457 upb_pb_encoder_create(arena->ptr(), handlers, output.sink()));
6523 upb_textprinter_create(arena->ptr(), handlers->ptr(), output.sink()));
6625 * sink. */
6635 arena->ptr(), method.ptr(), symtab_ptr, output.sink(), status->ptr(),
6736 upb_json_printer_create(arena->ptr(), handlers, output.sink()));