NVorbis.StreamReadBuffer.CreateNewBuffer C# (CSharp) Method

CreateNewBuffer() static private method

static private CreateNewBuffer ( long offset, int count ) : void
offset long
count int
return void
        void CreateNewBuffer(long offset, int count)
        {
            SaveBuffer();

            _data = new byte[Math.Min(2 << (int)Math.Log(count - 1, 2), _maxSize)];
            _baseOffset = offset;
        }