class HexaPDF::FiberWithLength

Parent

This special Fiber class should be used when the total length of the data yielded by the fiber is known beforehand. HexaPDF uses this information to avoid unnecessary memory usage.

Attributes

length[R]

The total length of the data that will be yielded by this fiber. If the return value is negative the total length is not known.

Public Class Methods

new(length, &block)

Initializes the Fiber and sets the length.

A length of nil is equal to -1.

Calls superclass method