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; }
internal RamOutputStream(RamFile file) { this.file = file; currentBufferIndex = -1; currentBuffer = null; }