ExcelToolKit.BinaryFormat.XlsBiffStream.ReadAt C# (CSharp) Méthode

ReadAt() public méthode

Reads record at specified offset, does not change cursor position
public ReadAt ( int offset ) : XlsBiffRecord
offset int
Résultat XlsBiffRecord
        public XlsBiffRecord ReadAt(int offset) {
            if ((uint)offset>=bytes.Length)
                return null;

            XlsBiffRecord rec=XlsBiffRecord.GetRecord(bytes, (uint)offset, reader);

            //choose ReadOption.Loose to skip this check (e.g. sql reporting services)
            if (reader.ReadOption==ReadOption.Strict) {
                if (offset+rec.Size>m_size)
                    return null;
            }

            return rec;
        }
    }