Lines Matching refs:size
20 static_assert(offsetof(fidl_string_t, size) == 0u, "");
61 bool ClaimOutOfLineStorage(uint32_t size, uint32_t* out_offset) {
69 if (add_overflow(offset, size, &offset) ||
276 // know the size of the struct to compute the start of the
291 if (type_->coded_struct.size > num_bytes_) {
292 return WithError("Message size is smaller than expected");
295 out_of_line_offset_ = static_cast<uint32_t>(fidl::FidlAlign(type_->coded_struct.size));
328 if (!ClaimOutOfLineStorage(frame->struct_pointer_state.struct_type->size,
360 if (!ClaimOutOfLineStorage(frame->union_pointer_state.union_type->size,
392 if (string_ptr->size != 0u) {
402 uint64_t size = string_ptr->size;
403 if (size > bound) {
407 if (!ClaimOutOfLineStorage(static_cast<uint32_t>(size), &string_data_offset)) {
457 uint32_t size;
458 if (mul_overflow(vector_ptr->count, frame->vector_state.element_size, &size)) {
459 return WithError("integer overflow calculating vector size");
461 if (!ClaimOutOfLineStorage(size, &frame->offset)) {
466 *frame = Frame(frame->vector_state.element, size,