Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceFireDB/IceFireDB
/ IsEnd
Method
IsEnd
IceFireDB-PubSub/utils/reader.go:82–91 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
80
}
81
82
func
(r *Reader) IsEnd() (ret bool) {
83
ret = false
84
85
if
r.ReadPosition >= r.WritePosition {
86
ret = true
87
r.Reset()
88
}
89
90
return
91
}
92
93
func
(r *Reader) Reset() {
94
r.WritePosition = 0
Callers
nothing calls this directly
Calls
1
Reset
Method · 0.95
Tested by
no test coverage detected