public void CreateNew() { Release(); _buffer = BufferManagerFactory.CreateInMemory(); InitBuffer(); }
public void AttachToBuffer(byte[] buffer, int startIndex = 0, int length = 0) { _buffer = BufferManagerFactory.CreateInMemory(buffer.Skip(startIndex).Take(length == 0 ? buffer.Length : length)); InitBuffer(); }