finish RingByteBuffer