(o decoderOptions)
| 49 | ) |
| 50 | |
| 51 | func newFrameDec(o decoderOptions) *frameDec { |
| 52 | if o.maxWindowSize > o.maxDecodedSize { |
| 53 | o.maxWindowSize = o.maxDecodedSize |
| 54 | } |
| 55 | d := frameDec{ |
| 56 | o: o, |
| 57 | } |
| 58 | return &d |
| 59 | } |
| 60 | |
| 61 | // reset will read the frame header and prepare for block decoding. |
| 62 | // If nothing can be read from the input, io.EOF will be returned. |