Encodes the coded index into its compressed integer representation.
@override int encode() => ((value.index + 1) << 5) | 3;