public NodeAVLDisk(RowAVLDisk r, IRowInputInterface input, int id) { this._iLeft = -1; this._iParent = -1; this._iRight = -1; this.row = r; this._iId = id; this.iData = r.GetPos(); base.IBalance = input.ReadInt(); this._iLeft = input.ReadInt(); if (this._iLeft <= 0) { this._iLeft = -1; } this._iRight = input.ReadInt(); if (this._iRight <= 0) { this._iRight = -1; } this._iParent = input.ReadInt(); if (this._iParent <= 0) { this._iParent = -1; } }
public void Read(IRowInputInterface i, ResultMetaData meta) { base.Id = i.ReadLong(); int num = i.ReadInt(); i.ReadInt(); i.ReadInt(); while (num-- > 0) { this.Add(i.ReadData(meta.ColumnTypes)); } }