tuned;
authorwenzelm
Sat, 15 Jun 2024 20:14:53 +0200
changeset 80369 8c8a2c483fc7
parent 80368 9db395953106
child 80370 119baa9f8cd0
tuned;
src/Pure/General/bytes.scala
--- a/src/Pure/General/bytes.scala	Sat Jun 15 20:14:24 2024 +0200
+++ b/src/Pure/General/bytes.scala	Sat Jun 15 20:14:53 2024 +0200
@@ -158,9 +158,9 @@
   }
 
   final class Builder private[Bytes](chunks_size: Int, buffer_size: Int) {
-    var chunks = new ArrayBuffer[Array[Byte]](chunks_size)
-    var buffer = new ByteArrayOutputStream(buffer_size)
-    def buffer_free(): Int = chunk_size.toInt - buffer.size()
+    private var chunks = new ArrayBuffer[Array[Byte]](chunks_size)
+    private var buffer = new ByteArrayOutputStream(buffer_size)
+    private def buffer_free(): Int = chunk_size.toInt - buffer.size()
 
     def += (array: Array[Byte], offset: Int, length: Int): Unit = {
       if (offset < 0 || length < 0 || offset.toLong + length.toLong > array.length) {