public void PeekAllElementsOverload(int bufferSize)
        {
            // Int Structs: Complex
            using (var memoryStream = _randomIntStructGenerator.GetMemoryStream())
            {
                var reader = new LittleEndianStreamReader(new Reloaded.Memory.Streams.BufferedStreamReader(memoryStream, bufferSize));
                for (int x = 0; x < _randomIntStructGenerator.Structs.Length; x++)
                {
                    var expected = reader.Peek <RandomIntStruct>();
                    var actual   = reader.Read <RandomIntStruct>();
                    Assert.Equal(expected, actual);
                    Assert.Equal(_randomIntStructGenerator.Structs[x], actual);
                }
            }

            // Integers: Primitive
            using (var memoryStream = _randomIntegerGenerator.GetMemoryStream())
            {
                var reader = new LittleEndianStreamReader(new Reloaded.Memory.Streams.BufferedStreamReader(memoryStream, bufferSize));
                for (int x = 0; x < _randomIntegerGenerator.Structs.Length; x++)
                {
                    var expected = reader.Peek <int>();
                    var actual   = reader.Read <int>();
                    Assert.Equal(expected, actual);
                    Assert.Equal(_randomIntegerGenerator.Structs[x], actual);
                }
            }
        }
        public void PeekAllElementsManaged(int bufferSize)
        {
            // Int Structs: Complex
            using (var memoryStream = _randomIntStructGenerator.GetMemoryStream())
            {
                var reader = new LittleEndianStreamReader(new Reloaded.Memory.Streams.BufferedStreamReader(memoryStream, bufferSize));
                for (int x = 0; x < _randomIntStructGenerator.Structs.Length; x++)
                {
                    reader.Peek(out RandomIntStruct expected, true);
                    reader.Read(out RandomIntStruct actual, true);
                    Assert.Equal(expected, actual);
                    Assert.Equal(_randomIntStructGenerator.Structs[x], actual);
                }
            }

            // Integers: Primitive
            using (var memoryStream = _randomIntegerGenerator.GetMemoryStream())
            {
                var reader = new LittleEndianStreamReader(new Reloaded.Memory.Streams.BufferedStreamReader(memoryStream, bufferSize));
                for (int x = 0; x < _randomIntegerGenerator.Structs.Length; x++)
                {
                    reader.Read(out int value, true);
                    Assert.Equal(_randomIntegerGenerator.Structs[x], value);
                }
            }
        }