MCPcopy 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
64func (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
70func (rw *Buffer) UnreadByte() error {
71 rw.l.Lock()

Callers 2

TestReadBytesFunction · 0.80
TestUnreadByteFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestReadBytesFunction · 0.64
TestUnreadByteFunction · 0.64