Exemple #1
0
 public void Reset(INSSBuffer buff)
 {
     ReleaseBuffer();
     _position = 0;
     _buffer   = buff;
     _buffer.GetBufferAndLength(out _bufferPtr, out _length);
     _buffer.GetMaxLength(out _maxLength);
 }
        /// <summary>
        /// NSSBuffer constructor
        /// </summary>
        /// <param name="buff">INSSBuffer to wrap</param>
        public NSSBuffer(INSSBuffer buff)

        {
            m_Buffer = buff;

            m_Buffer.GetBufferAndLength(out m_BufferPtr, out m_Length);

            m_Buffer.GetMaxLength(out m_MaxLength);
        }
Exemple #3
0
    /// <summary>
    /// NSSBuffer constructor
    /// </summary>
    /// <param name="buff">INSSBuffer to wrap</param>
    public NSSBuffer(INSSBuffer buff)

    {
      m_Buffer = buff;

      m_Buffer.GetBufferAndLength(out m_BufferPtr, out m_Length);

      m_Buffer.GetMaxLength(out m_MaxLength);
    }
Exemple #4
0
		public NSSBuffer(INSSBuffer buff)
		{
			if (buff == null)
				throw new ArgumentNullException("buff", "Invalid INSSBuffer parameter.");

			_buffer = buff;

			_buffer.GetBufferAndLength(out _bufferPtr, out _length);
			_buffer.GetMaxLength(out _maxLength);
		}
Exemple #5
0
        public NSSBuffer(INSSBuffer buff)
        {
            if (buff == null)
            {
                throw new ArgumentNullException("buff", "Invalid INSSBuffer parameter.");
            }

            _buffer = buff;

            _buffer.GetBufferAndLength(out _bufferPtr, out _length);
            _buffer.GetMaxLength(out _maxLength);
        }
Exemple #6
0
        private void TestLength()
        {
            int l;

            m_pSample.SetLength(12);
            m_pSample.GetLength(out l);

            Debug.Assert(l == 12);

            m_pSample.GetMaxLength(out l);
            Debug.Assert(l == MAXLENGTH);
        }
Exemple #7
0
 public void Reset(INSSBuffer buff)
 {
     ReleaseBuffer();
     _position = 0;
     _buffer = buff;
     _buffer.GetBufferAndLength(out _bufferPtr, out _length);
     _buffer.GetMaxLength(out _maxLength);
 }