GSF.IO.Unmanaged.MemoryPoolStreamCore.ConfigureAlignment C# (CSharp) Method

ConfigureAlignment() public method

Configure the natural alignment of the data.
public ConfigureAlignment ( long startPosition ) : void
startPosition long The first addressable position
return void
        public void ConfigureAlignment(long startPosition)
        {
            ConfigureAlignment(startPosition, 1);
        }

Same methods

MemoryPoolStreamCore::ConfigureAlignment ( long startPosition, int alignment ) : void

Usage Example

 /// <summary>
 /// Releases the buffered data contained in the buffer pool.
 /// This is acomplished by disposing of the writer and recreating it.
 /// </summary>
 private void ReleaseWriteBufferSpace()
 {
     m_writeBuffer.Dispose();
     m_writeBuffer = new MemoryPoolStreamCore(m_pool);
     m_writeBuffer.ConfigureAlignment(m_lengthOfCommittedData, m_pool.PageSize);
 }
All Usage Examples Of GSF.IO.Unmanaged.MemoryPoolStreamCore::ConfigureAlignment