HaloDB
HaloDB copied to clipboard
ByteBuffer flip twice
I was attracted by the design of HaloDB recently, and I carefully read his implementation. I found that in the serialize method of InMemoryIndexMetaDataSerializer, the byteBuffer flips twice. I don’t understand why flip twice. Isn’t there any problem with flipping twice?