MCPcopy
hub / github.com/TarsCloud/TarsGo / ToBytes

Method ToBytes

tars/protocol/codec/codec.go:874–876  ·  view source on GitHub ↗

ToBytes make the reader to string

()

Source from the content-addressed store, hash-verified

872
873// ToBytes make the reader to string
874func (b *Reader) ToBytes() []byte {
875 return b.ref
876}
877
878func (b *Reader) Len() int {
879 return len(b.ref)

Callers 9

DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95
DispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected