Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blobcache/blobcache
/ WriteTo
Method
WriteTo
src/bcp/message.go:192–195 ·
view source on GitHub ↗
(w io.Writer)
Source
from the content-addressed store, hash-verified
190
}
191
192
func
(m *Message) WriteTo(w io.Writer) (int64, error) {
193
_, err := w.Write(m.buf)
194
return
int64(len(m.buf)), err
195
}
196
197
func
(m *Message) ReadFrom(r io.Reader) (int64, error) {
198
m.buf = m.buf[:0]
Callers
3
TestMessageReadWrite
Function · 0.95
ServeStream
Function · 0.95
Ask
Method · 0.45
Calls
1
Write
Method · 0.45
Tested by
1
TestMessageReadWrite
Function · 0.76