MCPcopy
hub / github.com/sirupsen/logrus / Write

Method Write

writer_test.go:50–54  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

48}
49
50func (b *bufferWithMu) Write(p []byte) (int, error) {
51 b.mu.Lock()
52 defer b.mu.Unlock()
53 return b.buf.Write(p)
54}
55
56func (b *bufferWithMu) Read(p []byte) (int, error) {
57 b.mu.RLock()

Callers 4

writeMethod · 0.45
TestWriterSplitNewlinesFunction · 0.45
TestWriterSplitsMax64KBFunction · 0.45
FireMethod · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected