MCPcopy
hub / github.com/MetaCubeX/mihomo / ReadFrom

Method ReadFrom

transport/shadowsocks/shadowstream/stream.go:158–165  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

156}
157
158func (c *Conn) ReadFrom(r io.Reader) (int64, error) {
159 if c.w == nil {
160 if err := c.initWriter(); err != nil {
161 return 0, err
162 }
163 }
164 return c.w.ReadFrom(r)
165}
166
167func (c *Conn) ObtainWriteIV() ([]byte, error) {
168 if len(c.writeIV) == c.IVSize() {

Callers

nothing calls this directly

Calls 2

initWriterMethod · 0.95
ReadFromMethod · 0.65

Tested by

no test coverage detected