How to use GSPathSegment.initWithPoint1_point2_options_()

Hello, I am trying to build proxy segments to transformations on those instead of the original segments in the layer. For this, I am copying the points from the original segments, and initiating a new proxy segment using GSPathSegment.initWithPoint1_point2_options_(). I am, however, unsure as to what the “options” argument is. When comparing the original segment and the new segment, I see:

ORIGINAL "L: |(686,380)--(155,380)| >-531,0)4 obj:2"
PROXY_SG "L: |(686,380)--(155,380)| >-531,0)0"

What is the 4 at the end of the line? I know I can get it by passing 4 as the option argument, but I don’t know what it means. Also, what is obj:2 and why does it not appear on the proxy segment? Does it indicate the amount of connected segments?

Ignore the options.
The “obj: 2” means that it has references to 2 “objects”. That can be GSNodes or GSHints (or whatever you like to keep around).