RootCauseunvalidated
The number of bytes to read is implicitly specified in the allocated size of the buffer. — using Java's ByteBuffer and FileChannel. Tension: If I know the maximum number of bytes I will ever read I can allocate a single buffer just once and reuse it. Outcome: You can make a ByteBuffer appear to be smaller by changing its limit.
07311896-fce4-4100-866a-dda41fb8f53f
The number of bytes to read is implicitly specified in the allocated size of the buffer. — using Java's ByteBuffer and FileChannel. Tension: If I know the maximum number of bytes I will ever read I can allocate a single buffer just once and reuse it. Outcome: You can make a ByteBuffer appear to be smaller by changing its limit.