Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/goose
/ ReadBytes
Method
ReadBytes
syncio/buffer.go:64–68 ·
view source on GitHub ↗
(delim byte)
Source
from the content-addressed store, hash-verified
62
}
63
64
func
(rw *Buffer) ReadBytes(delim byte) (line []byte, err error) {
65
rw.l.Lock()
66
defer
rw.l.Unlock()
67
return
rw.b.ReadBytes(delim)
68
}
69
70
func
(rw *Buffer) UnreadByte() error {
71
rw.l.Lock()
Callers
2
TestReadBytes
Function · 0.80
TestUnreadByte
Function · 0.80
Calls
no outgoing calls
Tested by
2
TestReadBytes
Function · 0.64
TestUnreadByte
Function · 0.64