Lines Matching refs:offset

54     template <typename T> T* TypedAt(uint32_t offset) const {
55 return reinterpret_cast<T*>(bytes_ + offset);
86 // out-of-line offset by 8 to maintain the aligned-to-FIDL_ALIGNMENT
92 uint32_t offset = out_of_line_offset_;
93 if (add_overflow(offset, size, &offset) ||
94 add_overflow(offset, mask, &offset)) {
97 offset &= ~mask;
99 if (offset > num_bytes_) {
104 out_of_line_offset_ = offset;
109 Frame(const fidl_type_t* fidl_type, uint32_t offset) : offset(offset) {
155 Frame(const fidl::FidlCodedStruct* coded_struct, uint32_t offset) : offset(offset) {
161 Frame(const fidl::FidlCodedUnion* coded_union, uint32_t offset) : offset(offset) {
169 uint32_t offset)
170 : offset(offset) {
214 // A byte offset into bytes_;
215 uint32_t offset;
350 uint32_t field_offset = frame->offset + field.offset;
358 void** struct_ptr_ptr = TypedAt<void*>(frame->offset);
364 *struct_ptr_ptr, &frame->offset)) {
372 *frame = Frame(coded_struct, frame->offset);
376 fidl_union_tag_t union_tag = *TypedAt<fidl_union_tag_t>(frame->offset);
387 frame->offset += frame->union_state.data_offset;
388 *frame = Frame(member, frame->offset);
392 fidl_union_tag_t** union_ptr_ptr = TypedAt<fidl_union_tag_t*>(frame->offset);
398 &frame->offset)) {
406 *frame = Frame(coded_union, frame->offset);
416 uint32_t offset = frame->offset + element_offset;
417 if (!Push(Frame(element_type, offset))) {
424 fidl_string_t* string_ptr = TypedAt<fidl_string_t>(frame->offset);
441 &frame->offset)) {
451 zx_handle_t* handle_ptr = TypedAt<zx_handle_t>(frame->offset);
467 fidl_vector_t* vector_ptr = TypedAt<fidl_vector_t>(frame->offset);
487 if (!ClaimOutOfLineStorage(size, vector_ptr->data, &frame->offset)) {
496 frame->vector_state.element_size, frame->offset);