Lines Matching refs:offset

145         size_t offset,  in addParamStructDesc()  argument
161 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
198 offset, in addParamStructDesc()
313 size_t offset = 0; in updateParamsFromMessage() local
320 offset = sizeof(C2Param) + desc.offset in updateParamsFromMessage()
327 if (param->get()->size() < offset + size) { in updateParamsFromMessage()
328 if (size > INT32_MAX - offset || offset < minOffset) { in updateParamsFromMessage()
332 C2Param *newParam = (C2Param *)::operator new(offset + size); in updateParamsFromMessage()
333 new (newParam) _C2Param(offset + size, param->get()->index()); in updateParamsFromMessage()
334 if (offset > sizeof(C2Param)) { in updateParamsFromMessage()
335 memcpy(newParam + 1, param->get() + 1, offset - sizeof(C2Param)); in updateParamsFromMessage()
338 } else if (param->get()->size() > offset + size) { in updateParamsFromMessage()
340 _C2ParamInspector::TrimParam(param->get(), offset + size); in updateParamsFromMessage()
345 memset((uint8_t *)(param->get()) + offset + size, 0, in updateParamsFromMessage()
350 memcpy((uint8_t *)(param->get()) + offset, ptr, size); in updateParamsFromMessage()
454 tmp->setRange(tmp->offset(), fieldExtent); in parseMessageAndDoWork()
505 size_t offset = sizeof(C2Param) + desc.offset in getParams() local
507 uint8_t *data = (uint8_t *)param + offset; in getParams()
513 length = param->size() - offset; in getParams()
516 if (param->size() < length || param->size() - length < offset) { in getParams()
518 length, param->size(), offset); in getParams()
528 length = param->size() - offset; in getParams()
531 if (param->size() < length || param->size() - length < offset) { in getParams()
533 length, param->size(), offset); in getParams()
544 if (param->size() < valueSize || param->size() - valueSize < offset) { in getParams()
546 param->size(), offset); in getParams()