Beispiel #1
0
 public RamInputStream(RamFile f)
 {
     file   = f;
     length = file.Length;
     if (length / BUFFER_SIZE >= int.MaxValue)
     {
         throw new IOException("Too large RAMFile! " + length);
     }
     currentBufferIndex = -1;
     currentBuffer      = null;
 }
Beispiel #2
0
 internal RamOutputStream(RamFile file)
 {
     this.file          = file;
     currentBufferIndex = -1;
     currentBuffer      = null;
 }