public void Initialise(object host) { this.Host = ( Host )host; this._Next = Utilities.ReadStructure <VcrRecord>(this.Host.VcrReader.BaseStream); this._IsInitialised = true; }
/// <summary> /// VCR_ReadNext /// </summary> private void ReadNext() { try { this._Next = Utilities.ReadStructure <VcrRecord>(this.Host.VcrReader.BaseStream); } catch (IOException) { this._Next = new(); this._Next.op = 255; Utilities.Error("=== END OF PLAYBACK===\n"); } if (this._Next.op < 1 || this._Next.op > VcrOp.VCR_MAX_MESSAGE) { Utilities.Error("VCR_ReadNext: bad op"); } }