package org.cryptonit;

import javacard.framework.JCSystem;

public class IOBuffer {
    private FileIndex index = null;
    private byte [] buffer = null;

    public IOBuffer(FileIndex index) {
        this.index = index;
        this.buffer = JCSystem.makeTransientByteArray((short)256, JCSystem.CLEAR_ON_DESELECT);
    }
}

@@ -150,16 +150,53 @@
  null;%0A%0A
+    private boolean %5B%5D bools = null;%0A
     publ
@@ -254,16 +254,112 @@
  index;%0A
+        this.bools = JCSystem.makeTransientBooleanArray((short) 2, JCSystem.CLEAR_ON_DESELECT);%0A
         

Add array of booleans to maintain state