示例#1
0
		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;
		}
示例#2
0
		internal RrdToolReader(String rrdPath)
		{
			rrd = new RRDatabase(rrdPath);
		}
示例#3
0
		public override void Dispose()
		{
			if (rrd != null)
			{
				rrd.Close();
				rrd = null;
			}
		}