Function S2Loop.encode

Appends a serialized representation of the S2Loop to "encoder".

void encode(ORangeT) (
  Encoder!ORangeT encoder
) const;

Generally clients should not use S2Loop::Encode(). Instead they should encode an S2Polygon, which unlike this method supports (lossless) compression.

REQUIRES

"encoder" uses the default constructor, so that its buffer can be enlarged as necessary by calling Ensure(int).