Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/segmentio/kafka-go
/ readByte
Method
readByte
protocol/decode.go:185–190 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
183
}
184
185
func
(d *decoder) readByte() byte {
186
if
d.readFull(d.buffer[:1]) {
187
return
d.buffer[0]
188
}
189
return
0
190
}
191
192
func
(d *decoder) readBool() bool {
193
return
d.readByte() != 0
Callers
4
ReadByte
Method · 0.95
readBool
Method · 0.95
readVarInt
Method · 0.95
readUnsignedVarInt
Method · 0.95
Calls
1
readFull
Method · 0.95
Tested by
no test coverage detected