shmipc-spec icon indicating copy to clipboard operation
shmipc-spec copied to clipboard

Question on BufferSlice.next

Open dodysw3 opened this issue 1 year ago • 1 comments

https://github.com/cloudwego/shmipc-spec/blob/51faf9baa7dd10653180ed1aff5746567792424a/README.md?plain=1#L189

A pointer to the next BufferSlice in the linked list, as an offset from the start of the BufferManager in shared memory.

However the provided example shown below indicates that it is an offset from the start of BufferList?

dodysw3 avatar Oct 07 '24 07:10 dodysw3

yes, example shown below only shows the structure of a BufferSlice,the actual offset value in code will plus BufferList header length and BufferManager header length.

zhquzzuli avatar Oct 14 '24 06:10 zhquzzuli