finish implementation of followBuilderFars()

This commit is contained in:
David Renshaw 2014-11-18 08:49:02 -05:00
parent 9ba6f3970c
commit 855f635e50

View file

@ -126,8 +126,11 @@ final class WireHelpers {
//# Landing pad is another far pointer. It is followed by a
//# tag describing the pointed-to object.
throw new Error("unimplemented");
int refOffset = padOffset + 1;
ref = resultSegment.get(refOffset);
resultSegment = resultSegment.getArena().getSegment(FarPointer.getSegmentId(pad));
return new FollowBuilderFarsResult(FarPointer.positionInSegment(pad), ref, resultSegment);
} else {
return new FollowBuilderFarsResult(refTarget, ref, segment);
}