Lines Matching refs:buffer
29 * to a byte-buffer and an array of file descriptors.
41 // flattens the object into buffer.
46 virtual status_t flatten(void* buffer, size_t size,
49 // unflattens the object from buffer.
56 virtual status_t unflatten(void const* buffer, size_t size,
66 * to a byte-buffer.
82 // flattens the object into buffer.
83 inline status_t flatten(void* buffer) const;
85 // unflattens the object from buffer of given size.
86 inline status_t unflatten(void const* buffer, size_t size);
98 inline status_t LightFlattenable<T>::flatten(void* buffer) const {
99 return static_cast<T const*>(this)->T::flatten(buffer);
102 inline status_t LightFlattenable<T>::unflatten(void const* buffer, size_t size) {
103 return static_cast<T*>(this)->T::unflatten(buffer, size);
120 inline status_t flatten(void* buffer) const {
121 *reinterpret_cast<T*>(buffer) = *static_cast<T const*>(this);
124 inline status_t unflatten(void const* buffer, size_t) {
125 *static_cast<T*>(this) = *reinterpret_cast<T const*>(buffer);