You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When allocation is going to exceed the bufferSize allocationOffset + size > bufferSize, why bufferOffset = 0; but not bufferOffset = size? I think the latter is the right one, meaning that you reset your allocation to the start of inner buffer, and you have allocate size memory.
The ring buffer is defined as:
When allocation is going to exceed the bufferSize
allocationOffset + size > bufferSize
, whybufferOffset = 0;
but notbufferOffset = size
? I think the latter is the right one, meaning that you reset your allocation to the start of inner buffer, and you have allocatesize
memory.I think this is right:
The text was updated successfully, but these errors were encountered: