Esempio n. 1
0
        private void CaptureStateNonDelta(byte[] state)
        {
            long offset = _rewindBuffer.Enqueue(0, state.Length + 1);
            var  stream = _rewindBuffer.Stream;

            stream.Position = offset;

            // write the header for a non-delta frame
            stream.WriteByte(1);             // Full state = true
            stream.Write(state, 0, state.Length);
        }
Esempio n. 2
0
        private void CaptureRewindStateNonDelta(byte[] currentState)
        {
            long offset = _rewindBuffer.Enqueue(0, currentState.Length + 1);
            var  stream = _rewindBuffer.Stream;

            stream.Position = offset;

            // write the header for a non-delta frame
            stream.WriteByte(1);             // i.e. true
            stream.Write(currentState, 0, currentState.Length);
        }