InstanceTokenizer
object InstanceTokenizer
Content copied to clipboard
Object that returns unique strings for any Kotlin/JVM instances, and then allows the original instances to be accessed given the token strings.
Uses WeakReferences, so should not cause memory leaks on its own.
Combined with TokenizingJson in ScriptingProtocol, allows scripts to handle unserializable objects, and use them in property/key/index assignments and function calls.
Functions
tokenFromInstance
Link copied to clipboard
Generate a distinctive token string to represent a Kotlin/JVM object.
Properties
forceCleanChance
Link copied to clipboard
forceCleanThreshold
Link copied to clipboard
instancesByTokens
Link copied to clipboard
lastTokenCountLog
Link copied to clipboard
tokenCountLogBase
Link copied to clipboard
tokenMaxLength
Link copied to clipboard
tokenPrefix
Link copied to clipboard
tokenReuse
Link copied to clipboard
tokensByInstances
Link copied to clipboard
Sources
jvm source
Link copied to clipboard