Lines Matching refs:offs
114 * Add some data to a message at offs.
117 * \param offs The current offset within the message, this shall be padded to
125 inline int msg_add(char *msg, unsigned offs, unsigned limit, T v) noexcept
127 offs = align_to<T>(offs);
128 if (L4_UNLIKELY(!check_size<T>(offs, limit)))
130 *reinterpret_cast<typename L4::Types::Remove_const<T>::type *>(msg + offs) = v;
131 return offs + sizeof(T);
135 * Get some data from a message at offs.
138 * \param offs The current offset within the message, this shall be padded to
146 inline int msg_get(char *msg, unsigned offs, unsigned limit, T &v) noexcept
148 offs = align_to<T>(offs);
149 if (L4_UNLIKELY(!check_size<T>(offs, limit)))
151 v = *reinterpret_cast<T *>(msg + offs);
152 return offs + sizeof(T);
291 static int to_svr(char *, unsigned offs, unsigned limit,
294 offs = align_to<MTYPE>(offs);
295 if (L4_UNLIKELY(!check_size<MTYPE>(offs, limit)))
297 return offs + sizeof(MTYPE);