Lines Matching refs:size
21 static_assert(offsetof(fidl_string_t, size) == 0u, "");
81 bool ClaimOutOfLineStorage(uint32_t size, const void* storage, uint32_t* out_offset) {
93 if (add_overflow(offset, size, &offset) ||
300 // know the size of the struct to compute the start of the
328 if (type_->coded_struct.size > num_bytes_) {
333 out_of_line_offset_ = static_cast<uint32_t>(fidl::FidlAlign(type_->coded_struct.size));
363 if (!ClaimOutOfLineStorage(frame->struct_pointer_state.struct_type->size,
397 if (!ClaimOutOfLineStorage(frame->union_pointer_state.union_type->size, *union_ptr_ptr,
434 uint64_t size = string_ptr->size;
435 if (size > bound) {
440 if (!ClaimOutOfLineStorage(static_cast<uint32_t>(size), string_ptr->data,
481 uint32_t size;
482 if (mul_overflow(vector_ptr->count, frame->vector_state.element_size, &size)) {
483 SetError("integer overflow calculating vector size");
487 if (!ClaimOutOfLineStorage(size, vector_ptr->data, &frame->offset)) {
495 *frame = Frame(frame->vector_state.element, size,