From: adash Date: Wed, 19 May 2010 17:21:30 +0000 (+0000) Subject: add missing files X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f9a2bb13df6a96a35951b7a76229c3e869c55793;p=IRC.git add missing files --- diff --git a/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java new file mode 100644 index 00000000..1c3773f1 --- /dev/null +++ b/Robust/src/Benchmarks/Recovery/FileSystem/recovery/DFile.java @@ -0,0 +1,30 @@ +public class DFile { + char [] data; + int size; + public DFile() { + data=global new char[4096]; + size=data.length; + } + public void write(int offset, char[] towrite) { + int length=offset+towrite.length; + if (length>size) { + if (length>data.length) { + char [] ptr=global new char[length]; + for(int i=0;i