예제 #1
0
        public void Initialise(object host)
        {
            this.Host = ( Host )host;

            this._Next          = Utilities.ReadStructure <VcrRecord>(this.Host.VcrReader.BaseStream);
            this._IsInitialised = true;
        }
예제 #2
0
 /// <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");
     }
 }