utils library

Utility classes and helper functions for common operations.

This library provides:

  • Global settings management for Mapsforge configuration
  • Performance timing utilities for benchmarking
  • Efficient binary data builders and manipulators
  • Cross-platform compatibility helpers

Classes

DefaultProfilerSession
/////////////////////////////////////////////////////////////////////////// Represents a profiling session for measuring operation duration
DouglasPeuckerLatLong
Optimized Douglas-Peucker line simplification algorithm for geographic coordinates.
LatLongUtils
Utility class for geographic coordinate calculations and geometric operations.
MapsforgeSettingsMgr
Singleton settings manager for Mapsforge rendering configuration.
ObjectPool<T>
A simple object pool to reduce memory allocations and garbage collection pressure.
PerformanceEvent
/////////////////////////////////////////////////////////////////////////// Represents a single performance event
PerformanceMetric
/////////////////////////////////////////////////////////////////////////// Represents a performance metric derived from events
PerformanceProfiler
Comprehensive performance profiling and monitoring system
PerformanceReport
/////////////////////////////////////////////////////////////////////////// Comprehensive performance report
PerformanceStats
/////////////////////////////////////////////////////////////////////////// Statistical analysis of performance metrics
ProfilerSession
///////////////////////////////////////////////////////////////////////////
Uint8ListBuilder
Dynamic builder for constructing Uint8List with automatic capacity management.