TRingBuffer::Serialize

Serializes the internal buffer into the given buffer