MCPcopy Create free account
hub / github.com/Monibuca/engine / Write

Method Write

log/writer.go:12–20  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

10}
11
12func (m *MultipleWriter) Write(p []byte) (n int, err error) {
13 m.Range(func(key, value any) bool {
14 if _, err := key.(io.Writer).Write(p); err != nil {
15 m.Delete(key)
16 }
17 return true
18 })
19 return
20}
21
22func (m *MultipleWriter) Add(writer io.Writer) {
23 m.Map.Store(writer, struct{}{})

Callers

nothing calls this directly

Calls 3

WriteMethod · 0.65
RangeMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected