Gets the length of the write data when WriteTo will be called.
@override int getWriteLength() => _enc.fromInt(value).length + 1;