MCPcopy Create free account
hub / github.com/dave/blast / Write

Method Write

blaster/blaster_test.go:950–954  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

948 return b.b.Read(p)
949}
950func (b *ThreadSafeBuffer) Write(p []byte) (n int, err error) {
951 b.m.Lock()
952 defer b.m.Unlock()
953 return b.b.Write(p)
954}
955func (b *ThreadSafeBuffer) String() string {
956 b.m.Lock()
957 defer b.m.Unlock()

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected