Lines Matching defs:from
2072 * 1. We can read a 4-byte value from any address without crashing
2485 /* This file was generated by upbc (the upb compiler) from the input
3107 /* isalpha() etc. from <ctype.h> are locale-dependent, which we don't want. */
4053 /* Code to build defs from descriptor protos. *********************************/
4057 * this code is used to directly build defs from Ruby (for example) we do need
4186 /* Remove components from base until we find an entry or run out.
5527 * from outer frames if this frame has no START* handler). Not implemented for
6209 uint32_t from = (uint32_t)((c->pc + 1) - c->group->bytecode);
6210 return c->back_labels[-label] - from;
6774 /* Populate "methods" with new upb_pbdecodermethod objects reachable from "h".
6777 * Generates a new method for every destination handlers reachable from "h". */
6848 * 1. all messages are assigned relative offsets from the beginning of the
6942 ** instruction and resume from there. A fair amount of the logic here is to
6944 ** be capable of suspending/resuming from any byte in the stream. This
6945 ** sometimes requires keeping a few trailing bytes from the last buffer around
7035 * to our "decode" callback or some residual bytes from the previous buffer. */
7037 /* How many bytes can be safely read from d->ptr without reading past end-of-buf
7136 /* Resumes the decoder from an initial state or from a previous suspend. */
7175 /* We have residual bytes from the last buffer. */
7326 /* Slow path for decoding a varint from the current buffer position.
7344 /* Decodes a varint from the current buffer position.
7367 /* Decodes a 32-bit varint from the current buffer position.
7386 /* Decodes a fixed32 from the current buffer position.
7393 /* Decodes a fixed64 from the current buffer position.
7436 * existing delim end prevents us from continuing to parse values from a
7444 /* Pops a frame from the decoder stack. */
7859 /* Rewind from OP_TAG* to OP_CHECKDELIM. */
8599 /* Based on CEscapeInternal() from Google's protobuf release. */
8730 /* Output a symbolic value from the enum if found, else just print as int32. */
8915 * This scheme comes from the original Google Protobuf implementation
8980 ** - handling of push-back (non-success returns from sink functions).
9162 * message's map field that we're currently parsing. This differs from |f|
9753 /* Callbacks from the parser **************************************************/
9755 /* These are the functions called directly from the parser itself.
10664 /* Convert from 0-epoch (0001-01-01 BC) to Unix Epoch (1970-01-01 AD).
10862 * is invoked from end_membername(), at the end of the map entry's key string,
10863 * with the map key in the accumulate buffer. It parses the key from that
12278 /* Since the JSON name is different from the regular field name, add an
12482 /* TODO: Will need to change if we support pushback from the sink. */
12852 const unsigned char *from = (const unsigned char*)str;
12869 to[0] = base64[from[0] >> 2];
12870 to[1] = base64[((from[0] & 0x3) << 4) | (from[1] >> 4)];
12871 to[2] = base64[((from[1] & 0xf) << 2) | (from[2] >> 6)];
12872 to[3] = base64[from[2] & 0x3f];
12876 from += 3;
12881 to[0] = base64[from[0] >> 2];
12882 to[1] = base64[((from[0] & 0x3) << 4) | (from[1] >> 4)];
12883 to[2] = base64[(from[1] & 0xf) << 2];
12886 from += 2;
12889 to[0] = base64[from[0] >> 2];
12890 to[1] = base64[((from[0] & 0x3) << 4)];
12894 from += 1;