Appends a serialized representation of the S2Loop to "encoder".
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).
See Implementation
Appends a serialized representation of the S2Loop to "encoder".
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).