// StreamUtils - github.com/bblanchon/ArduinoStreamUtils // Copyright Benoit Blanchon 2019-2021 // MIT License #pragma once #include "../Policies/ReadForwardingPolicy.hpp" #include "../Policies/WriteBufferingPolicy.hpp" #include "../Ports/DefaultAllocator.hpp" #include "StreamProxy.hpp" namespace StreamUtils { template struct BasicWriteBufferingStream : StreamProxy> { explicit BasicWriteBufferingStream(Stream &upstream, size_t capacity, TAllocator allocator = TAllocator()) : StreamProxy>( upstream, {}, {capacity, allocator}) {} }; using WriteBufferingStream = BasicWriteBufferingStream; } // namespace StreamUtils