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); }
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); }
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); }
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); }