Dotty Documentation

0.14.0-bin-SNAPSHOT

object compactify
extends Object with Serializable

[-] Constructors

[-] Members

[+] lazy val md5 : MessageDigest
[+] def apply ( s: String ) ( implicit ctx: Context ) : String

COMPACTIFY

The hashed name has the form (prefix + marker + md5 + marker + suffix), where - prefix/suffix.length = MaxNameLength / 4 - md5.length = 32

We obtain the formula:

FileNameLength = 2*(MaxNameLength / 4) + 2.marker.length + 32 + 6

(+6 for ".class"). MaxNameLength can therefore be computed as follows: