Lines Matching defs:ofs
36 #define UPB_PTR_AT(msg, ofs, type) ((type*)((char*)(msg) + (ofs)))
6162 static void setofs(uint32_t *instruction, int32_t ofs) {
6164 *instruction = getop(*instruction) | (uint32_t)ofs << 8;
6166 *instruction = (*instruction & ~0xff00) | ((ofs & 0xff) << 8);
6168 UPB_ASSERT(getofs(*instruction) == ofs); /* Would fail in cases of overflow. */
6186 int ofs = getofs(*codep);
6188 codep = ofs ? codep + ofs : NULL;
6223 int ofs = pcofs(c);
6230 c->pc = g->bytecode + ofs;
6287 put32(c, op | (method->code_base.ofs - (pcofs(c) + 1)) << 8);
6471 uint64_t ofs;
6474 upb_pbdecoder_unpackdispatch(dispatch, &ofs, &wt1, &old_wt2);
6476 return upb_pbdecoder_packdispatch(ofs, wt1, new_wt2);
6484 uint64_t ofs = pcofs(c) - method->code_base.ofs;
6492 upb_inttable_insert(d, fn + UPB_MAX_FIELDNUMBER, upb_value_uint64(ofs));
6494 uint64_t val = upb_pbdecoder_packdispatch(ofs, wire_type, NO_WIRE_TYPE);
6728 method->code_base.ofs = pcofs(c);
6765 val = upb_value_uint64(pcofs(c) - method->code_base.ofs);
6828 m->code_base.ptr = g->bytecode + m->code_base.ofs;