Ejemplo n.º 1
0
        public Block4 ReadBlock(int iBock)
        {
            if (iBock >= _header.blockCount)
            {
                return(null);
            }
            int offset = HeaderSize + iBock * (int)_header.blockSize;

            _binaryFile.Seek(offset, SeekOrigin.Begin);
            var block = new Block4(_header.channelsInBlock, _header.functionsInBlock);

            block.read(_reader, false);
            return(block);
        }
Ejemplo n.º 2
0
        public List <Block4> GetBlockHeaders()
        {
            int offset = 0, iBlock;
            var list = new List <Block4>();

            for (iBlock = 0; iBlock < _header.blockCount; iBlock++)
            {
                offset = HeaderSize + (iBlock * (int)_header.blockSize);
                _binaryFile.Seek(offset, SeekOrigin.Begin);
                var block = new Block4(_header.channelsInBlock, _header.functionsInBlock);
                block.read(_reader, true);
                list.Add(block);
            }
            return(list);
        }