()
| 125 | } |
| 126 | |
| 127 | func (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 | |
| 135 | func (r Reader) LimitReader(n int64) Reader { |
| 136 | return NewReader(r.vm, io.LimitReader(r.r, n)) |
nothing calls this directly
no test coverage detected