internal Archive(RRDatabase db) { this.db = db; RRDFile file = db.rrdFile; offset = file.FilePointer; Type = (ConsolidationFunctionType)Enum.Parse(typeof(ConsolidationFunctionType), file.ReadString(Constants.CF_NAM_SIZE), true); RowCount = file.ReadInt(); PdpCount = file.ReadInt(); file.Align(); Xff = file.ReadDouble(); // Skip rest of rra_def_t.par[] file.Align(); file.SkipBytes(72); size = file.FilePointer - offset; }
internal RrdToolReader(String rrdPath) { rrd = new RRDatabase(rrdPath); }
public override void Dispose() { if (rrd != null) { rrd.Close(); rrd = null; } }