WithMaxBuffer overrides the safety cap. Negative or zero disables the cap entirely (caller assumes the risk of unbounded growth).
(n int)
| 72 | // WithMaxBuffer overrides the safety cap. Negative or zero disables |
| 73 | // the cap entirely (caller assumes the risk of unbounded growth). |
| 74 | func (r *PartialInputReader) WithMaxBuffer(n int) *PartialInputReader { |
| 75 | r.maxBuffer = n |
| 76 | return r |
| 77 | } |
| 78 | |
| 79 | // Feed appends another JSON fragment from the provider and attempts to |
| 80 | // re-parse the accumulated buffer. If parsing succeeds and yields a |
no outgoing calls