Example #1
0
            internal ThreadWriter(ref NativeEventStream stream)
            {
                this._writer = stream._stream.AsThreadWriter();

#if ENABLE_UNITY_COLLECTIONS_CHECKS
                _mSafety = stream.m_Safety;
#endif
            }
Example #2
0
            internal Reader(ref NativeEventStream stream)
            {
                this._reader = stream._stream.AsReader();

#if ENABLE_UNITY_COLLECTIONS_CHECKS
                this._remainingBlocks = 0;
                this._mSafety         = stream.m_Safety;
#endif
            }
Example #3
0
            internal IndexWriter(ref NativeEventStream stream)
            {
                this._writer = stream._stream.AsIndexWriter();

#if ENABLE_UNITY_COLLECTIONS_CHECKS
                this._mSafety         = stream.m_Safety;
                this._mLength         = int.MaxValue;
                this._mMinIndex       = int.MinValue;
                this._mMaxIndex       = int.MinValue;
                this._mPassByRefCheck = null;
#endif
            }