public static ContinuationFrameList reverse(ContinuationFrameList original) { ContinuationFrameList result = null; while (original != null) { result = new ContinuationFrameList (original.first, result); original = original.rest; } return result; }
public static ContinuationFrameList reverse(ContinuationFrameList original) { ContinuationFrameList result = null; while (original != null) { result = new ContinuationFrameList(original.first, result); original = original.rest; } return(result); }
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 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; }
internal Continuation(ContinuationFrameList new_frames, ContinuationFrameList old_frames) { }