MCPcopy Create free account
hub / github.com/devld/go-drive / ReadAsString

Method ReadAsString

script/object_io.go:127–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (r Reader) ReadAsString() string {
128 bytes, e := io.ReadAll(r.r)
129 if e != nil {
130 r.vm.ThrowError(e)
131 }
132 return string(bytes)
133}
134
135func (r Reader) LimitReader(n int64) Reader {
136 return NewReader(r.vm, io.LimitReader(r.r, n))

Callers

nothing calls this directly

Calls 1

ThrowErrorMethod · 0.80

Tested by

no test coverage detected