PGpcCompactGpsPoint class Null safety

Persister for GpcCompactGpsPoint.

Inheritance

Constructors

PGpcCompactGpsPoint()

Properties

chunkSize int
Approximate number of bytes to use as chunk size when reading/writing. After some basic testing settled on about 4 MB chunks, since some performance checks with 1M GpsPoint in a GpcCompactGpsPoint showed less than 15% performance improvements if huge chunk sizes are allowed that fit the whole list in one go.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
signature String
Returns the signature string for this Persister.
read-onlyinherited
signatureAndVersion SignatureAndVersion
Override in children to indicate the signature of this class (used to recognize when reading a file which persister to initialize) and which version is written. The version should be increased if for example new fields get persisted. In that case, the reader must contain compatibility code for reading older versions.
read-onlyoverride
supportedType Type
Indicates what object type this Persister can persist, to be overridden in child classes.
read-onlyoverride
version int
Indicates the version of the persistence method.
read-onlyinherited

Methods

getMetadata(GpsPointsView<GpsPoint> view) ByteData?
Allows writing up to Persistence.maxMetadataLength bytes of extra information in the file header. Override in children if needed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
readViewFromStream(GpsPointsView<GpsPoint> view, StreamReaderState source, int version, ByteData metadata) Future<void>
Overwrites the contents of view (if it is not read-only) with the information fom the source. version and metadata indicate the additional information that was read from the block header in the file, and may be used to e.g. convert old formats to new.
inherited
signatureFromString(String sig) String
Makes sure that the specified sig, if too short, is extended to be of valid signature length.
inherited
signatureFromType(Type type) String
Creates a default signature from the type. This should be used carefully, since changing the name of the supportedType class in a refactoring can lead to stored files becoming incompatible.
inherited
toString() String
A string representation of this object.
inherited
writeViewToStream(GpsPointsView<GpsPoint> view) Stream<List<int>>
Converts view to a Stream of bytes. Override in children.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited