Lines Matching refs:size
21 static_assert(offsetof(fidl_string_t, size) == 0u, "");
65 bool ClaimOutOfLineStorage(uint32_t size, uint32_t* out_offset) {
73 if (add_overflow(offset, size, &offset) ||
278 // know the size of the struct to compute the start of the
297 if (type_->coded_struct.size > num_bytes_) {
298 return WithError("Message size is smaller than expected");
301 out_of_line_offset_ = static_cast<uint32_t>(fidl::FidlAlign(type_->coded_struct.size));
335 if (!ClaimOutOfLineStorage(frame->struct_pointer_state.struct_type->size,
369 if (!ClaimOutOfLineStorage(frame->union_pointer_state.union_type->size,
402 if (string_ptr->size != 0u) {
412 uint64_t size = string_ptr->size;
413 if (size > bound) {
417 if (!ClaimOutOfLineStorage(static_cast<uint32_t>(size), &string_data_offset)) {
468 uint32_t size;
469 if (mul_overflow(vector_ptr->count, frame->vector_state.element_size, &size)) {
470 return WithError("integer overflow calculating vector size");
472 if (!ClaimOutOfLineStorage(size, &frame->offset)) {
478 *frame = Frame(frame->vector_state.element, size,