MCPcopy Create free account
hub / github.com/devld/go-drive / Write

Method Write

script/object_io.go:160–165  ·  view source on GitHub ↗
(b Bytes)

Source from the content-addressed store, hash-verified

158}
159
160func (tf TempFile) Write(b Bytes) {
161 _, e := tf.f.Write(b.b)
162 if e != nil {
163 tf.vm.ThrowError(e)
164 }
165}
166
167func (tf TempFile) CopyFrom(r any) {
168 reader := GetReader(r)

Callers

nothing calls this directly

Calls 2

ThrowErrorMethod · 0.80
WriteMethod · 0.65

Tested by

no test coverage detected