diff options
Diffstat (limited to 'sources/scalac/symtab/classfile/Pickle.java')
-rw-r--r-- | sources/scalac/symtab/classfile/Pickle.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sources/scalac/symtab/classfile/Pickle.java b/sources/scalac/symtab/classfile/Pickle.java index a82962dfb5..fe41289f8f 100644 --- a/sources/scalac/symtab/classfile/Pickle.java +++ b/sources/scalac/symtab/classfile/Pickle.java @@ -58,13 +58,18 @@ public class Pickle implements Kinds, Modifiers, EntryTags { /** Finalize pickler with given fullname. */ - public void finalize(Name fullname) { + public void pickle() { bytes = new byte[4096]; bp = 0; writeAttr(); this.index = null; this.entries = null; - writeFile(fullname); + } + + /** The number of elements defined in `bytes'. + */ + public int size() { + return bp; } /** Create output file with given extension for given class. @@ -94,7 +99,7 @@ public class Pickle implements Kinds, Modifiers, EntryTags { } } - private void writeFile(Name fullname) { + public void writeFile(Name fullname) { File outfile = outputFile(fullname, ".symbl"); try { createPath(outfile); |