sys:ringbuffer: memcpy and static inline