void restart( )
Java: void Restart( )
[Declared in "../coresys/common/kdu_compressed.h"]
Call this function only after all code-blocks have been loaded into the precinct ( check_loaded returns true) to force the packet sizing and/or packet data generation processes associated with size_packets and get_packets to start from scratch (start from the first layer of the packet) when they are next called. Calls to this function are generally required only when we need to backtrack through previously generated packets and start sizing again. As already described above, restarts occur implicitly when get_packets is first called after sizing packets or when size_packets is first called after generating packet data with get_packets.