Exemple #1
0
        public OCDataWriter(String filePath, int dimension = 1, int[,] maxIDs = null)
        {
            _stream     = new MemoryStream(10 * 1024 * 1024);
            _writer     = new BinaryWriter(_stream);
            _ocStreamer = new OCStreamer();

            _filePath   = filePath;
            _fileStream = File.Open(filePath, FileMode.Create);

            _dimension     = dimension;
            _maxBlockCount = dimension * dimension;
            _blockCount    = 0;

            _maxIDs = maxIDs;

            WriteOCDataHeader();
        }
Exemple #2
0
 private OCDataReader()
 {
     _stream     = new MemoryStream(10 * 1024 * 1024);
     _reader     = new BinaryReader(_stream);
     _ocStreamer = new OCStreamer();
 }