sys:ringbuffer: use memcpy in ringbuffer_get
sys:ringbuffer: static inline ringbuffer_init