MCPcopy Create free account
hub / github.com/encodeous/nylon / Write

Method Write

e2e/harness.go:273–279  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

271}
272
273func (w *managerWriter) Write(p []byte) (n int, err error) {
274 content := StripAnsi(string(p))
275 ts := time.Since(w.manager.start).Truncate(time.Millisecond)
276 fmt.Printf("[+%s][%s:%s] %s", ts, w.node, w.source, content)
277 w.manager.Accept(w.node, w.source, content)
278 return len(p), nil
279}
280
281func GetUnexportedField(field reflect.Value) interface{} {
282 return reflect.NewAt(field.Type(), unsafe.Pointer(field.UnsafeAddr())).Elem().Interface()

Callers

nothing calls this directly

Calls 2

StripAnsiFunction · 0.85
AcceptMethod · 0.45

Tested by

no test coverage detected