public int getLengthInBytes ( ) { long length = polygonOverheadInBytes ( ) ; for ( List < XYZPoint > loop : m_loops ) { length += loopLengthInBytes ( loop . size ( ) ) ; } return ( int ) length ; }
Return the number of bytes in the serialization for this polygon . Returned value does not include the 4 - byte length prefix that precedes variable - length types .