Esempio n. 1
0
 public bool MoveNext()
 {
     if (readerIndex == 8 && readerIndex == rawData.Length) return false;
     if (currentBlock.MoveNext())
     {
         this.CurrentObject = currentBlock.Current;
         this.currentType = currentBlock.currentType;
         return true;
     }
     this.currentBlock = ReadDataBlock();
     return this.MoveNext();
 }
Esempio n. 2
0
 private XlTableDataBlock ReadDataBlock()
 {
     XlTableDataBlock rValue = new XlTableDataBlock();
     rValue.TableDataType =
         System.BitConverter.ToInt16(new byte[] { rawData[readerIndex], rawData[readerIndex + 1] }, 0);
     readerIndex += 2;
     rValue.DataSize =
         System.BitConverter.ToInt16(new byte[] { rawData[readerIndex], rawData[readerIndex + 1] }, 0);
     readerIndex += 2;
     rValue.data = new byte[rValue.DataSize];
     Array.Copy(rawData, readerIndex, rValue.data, 0, rValue.DataSize);
     readerIndex += rValue.DataSize;
     return rValue;
 }
Esempio n. 3
0
        private XlTableDataBlock ReadDataBlock()
        {
            XlTableDataBlock rValue = new XlTableDataBlock();

            rValue.TableDataType =
                System.BitConverter.ToInt16(new byte[] { rawData[readerIndex], rawData[readerIndex + 1] }, 0);
            readerIndex    += 2;
            rValue.DataSize =
                System.BitConverter.ToInt16(new byte[] { rawData[readerIndex], rawData[readerIndex + 1] }, 0);
            readerIndex += 2;
            rValue.data  = new byte[rValue.DataSize];
            Array.Copy(rawData, readerIndex, rValue.data, 0, rValue.DataSize);
            readerIndex += rValue.DataSize;
            return(rValue);
        }
Esempio n. 4
0
 public bool MoveNext()
 {
     if (readerIndex == 8 && readerIndex == rawData.Length)
     {
         return(false);
     }
     if (currentBlock.MoveNext())
     {
         this.CurrentObject = currentBlock.Current;
         this.currentType   = currentBlock.currentType;
         return(true);
     }
     this.currentBlock = ReadDataBlock();
     return(this.MoveNext());
 }
Esempio n. 5
0
 public XLTableTyped(byte[] rawData)
 {
     this.rawData      = rawData;
     readerIndex       = 8;
     this.currentBlock = ReadDataBlock();
 }
Esempio n. 6
0
 public XLTableTyped(byte[] rawData)
 {
     this.rawData = rawData;
     readerIndex = 8;
     this.currentBlock = ReadDataBlock();
 }