public ControlPoint(ContinuationFrameList newFrames, ContinuationFrameList oldFrames) { // The new frames don't know what the continuation is below them. // We take them one by one and push them onto the old_frames // while setting their continuation to the list of frames below. frames = oldFrames; while (newFrames != null) { ContinuationFrame new_frame = newFrames.first; newFrames = newFrames.rest; if (new_frame.continuation != null) { throw new Exception("Continuation not empty?"); } frames = new ContinuationFrameList(new_frame, frames); new_frame.continuation = frames; } }
public ContinuationFrameList(ContinuationFrame first, ContinuationFrameList rest) { this.first = first; this.rest = rest; }