Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1188 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

"Token is too large to fit within buffer" while using GrowBuffer

Reported by: fvbommel Assigned to: kris
Priority: major Milestone: 0.99.8
Component: IO Version: trunk
Keywords: Cc:

Description

When I try to read in a token larger than the current size of a GrowBuffer?, I get "tango.core.Exception.IOException: Token is too large to fit within buffer".

Isn't the whole point of a GrowBuffer? that it grows when the buffer is too small? (Looks like the next() method just uses the base implementation, and thus doesn't grow the buffer when it should)

Change History

07/13/08 11:57:30 changed by fvbommel

I forgot to mention: "token" here means one string returned from a tango.text.stream.SimpleIterator.SimpleIterator running on the buffer.

08/03/08 13:47:38 changed by kris

  • status changed from new to closed.
  • resolution set to fixed.

(In [3838]) fixes #1188 :: "Token is too large to fit within buffer" while using GrowBuffer?

Added an expand() method to take care of this. Kudos to fvbommel