Lines Matching defs:upb
3 * This is where we define macros used across upb.
10 * #include "upb/foobar.h"
11 * #include "upb/baz.h"
14 * #include "upb/port_def.inc"
20 * #include "upb/port_undef.inc"
122 #error upb requires C++11 for C++ support
179 ** The definitions in this file are internal to upb.
200 ** store pointers or integers of at least 32 bits (upb isn't really useful on
213 ** This file contains shared definitions that are widely used across upb.
313 /* The global allocator used by upb. Uses the standard malloc()/free(). */
1362 /* This file was generated by upbc (the upb compiler) from the input
3080 ** Defs are upb's internal representation of the constructs that can appear
3553 ** upb::Handlers (upb_handlers)
3563 ** the most important feature of upb, because it allows parsers and serializers
3576 namespace upb {
3581 } /* namespace upb */
3595 * Only needed for the advanced functions in upb::Handlers. */
3625 /* Static selectors for upb::Handlers. */
3629 #define UPB_STATIC_SELECTOR_COUNT 3 /* Warning: also in upb/def.c. */
3631 /* Static selectors for upb::BytesHandler. */
3789 namespace upb {
3831 #define UpbMakeHandler(f) upb::MatchFunc(f).template GetFunc<f>()
3834 #define UpbBind(f, d) upb::MatchFunc(f).template GetFunc<f>((d))
3839 template <class T> class upb::Handler {
3841 /* The underlying, handler function signature that upb uses internally. */
3863 /* A upb::Handlers object represents the set of handlers associated with a
3874 class upb::HandlersPtr {
4167 class upb::HandlerCache {
4236 namespace upb {
4299 * However, few platforms are this strange, and it's unlikely that upb will be
4370 namespace upb {
5179 } /* namespace upb */
5200 ** upb::Sink (upb_sink)
5201 ** upb::BytesSink (upb_bytessink)
5222 namespace upb {
5399 /* A upb::Sink is an object that binds a upb::Handlers object to some runtime
5432 * independent of any particular upb::Handlers.
5435 class upb::Sink {
5645 class upb::BytesSink {
5703 namespace upb {
5721 ** upb::pb::Decoder
5739 namespace upb {
5746 } /* namespace upb */
5776 class upb::pb::DecoderMethodPtr {
5836 class upb::pb::DecoderPtr {
5849 upb::Sink output, Status *status) {
5918 class upb::pb::CodeCache {
5920 CodeCache(upb::HandlerCache *dest)
5974 * Arg for all of these is the upb selector for this field. */
6048 * setting it high will cause the upb::pb::Decoder object to be larger.
6396 ** upb::pb::Encoder (upb_pb_encoder)
6411 namespace upb {
6415 } /* namespace upb */
6446 class upb::pb::EncoderPtr {
6461 upb::Sink input() { return upb_pb_encoder_input(ptr()); }
6478 ** upb::pb::TextPrinter (upb_textprinter)
6488 namespace upb {
6492 } /* namespace upb */
6514 class upb::pb::TextPrinterPtr {
6520 static TextPrinterPtr Create(Arena *arena, upb::HandlersPtr *handlers,
6546 ** upb::json::Parser (upb_json_parser)
6557 namespace upb {
6563 } /* namespace upb */
6581 class upb::json::ParserMethodPtr {
6626 class upb::json::ParserPtr {
6667 class upb::json::CodeCache {
6685 ** upb::json::Printer
6695 namespace upb {
6699 } /* namespace upb */
6729 class upb::json::PrinterPtr {
6733 static PrinterPtr Create(Arena *arena, const upb::Handlers *handlers,