We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390d987 commit bd41beeCopy full SHA for bd41bee
compiler/src/dotty/tools/dotc/core/tasty/TastyPickler.scala
@@ -20,10 +20,11 @@ class TastyPickler(val rootCls: ClassSymbol) {
20
sections += ((nameBuffer.nameIndex(name.toTermName), buf))
21
22
def assembleParts(): Array[Byte] = {
23
- def lengthWithLength(buf: TastyBuffer) = {
24
- buf.assemble()
+ def lengthWithLength(buf: TastyBuffer) =
25
buf.length + natSize(buf.length)
26
- }
+
+ nameBuffer.assemble()
27
+ sections.foreach(_._2.assemble())
28
29
val uuidLow: Long = pjwHash64(nameBuffer.bytes)
30
val uuidHi: Long = sections.iterator.map(x => pjwHash64(x._2.bytes)).fold(0L)(_ ^ _)
0 commit comments