org.mapdb / Serializer / fixedSize

fixedSize

open fun fixedSize(): Int

Returns the fixed size of the serialized form in bytes or -1 if the size is not fixed (e.g. for Strings).

Some optimizations can be applied to serializers with a fixed size.

Return
the fixed size of the serialized form in bytes or -1 if the size is not fixed