MCPcopy Index your code
hub / github.com/foxcpp/maddy / Copy

Method Copy

framework/buffer/bytesreader.go:44–46  ·  view source on GitHub ↗

Copy returns the BytesReader reading from the same slice as br at the same position.

()

Source from the content-addressed store, hash-verified

42// Copy returns the BytesReader reading from the same slice as br at the same
43// position.
44func (br BytesReader) Copy() BytesReader {
45 return NewBytesReader(br.Bytes())
46}
47
48// Close is a dummy method for implementation of io.Closer so BytesReader can
49// be used in MemoryBuffer directly.

Callers 8

BufferInFileFunction · 0.80
BodyMethod · 0.80
BodyMethod · 0.80
msgsAddFunction · 0.80
msgsDumpFunction · 0.80
DataMethod · 0.80
LMTPDataMethod · 0.80
RewriteBodyMethod · 0.80

Calls 2

BytesMethod · 0.95
NewBytesReaderFunction · 0.85

Tested by

no test coverage detected