code: func UnmarshalLimited(r io.Reader, v interface{}, maxSize uint) (int, error) {
  	d := Decoder{r: r, maxReadSize: maxSize}
  	return d.Decode(v)
  }
docs: // UnmarshalLimited is identical to Unmarshal but it sets maxReadSize in order
  // to cap reads.