segment Ring tests more: add TwoWrite,Empty,NonEmpty

This commit is contained in:
soypat
2025-01-26 12:19:29 -03:00
parent c9aca77641
commit 94c59ee84e
3 changed files with 204 additions and 76 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ type ringTx struct {
// ringidx represents packet data inside RingTx
type ringidx struct {
// off is data start offset of packet data inside buf.
// off is data start offset of packet data inside buf. Follows [internal.Ring] semantics.
off int
// end is the ringed data end offset, non-inclusive.
// end is the ringed data end offset, non-inclusive. Follows [internal.Ring] semantics.
end int
// seq is the sequence number of the packet.
seq Value