11using System . Runtime . CompilerServices ;
22
3+ using GenHTTP . Engine . Internal . Utilities ;
4+
35namespace GenHTTP . Engine . Internal . Protocol ;
46
57internal static class StreamExtensions
68{
79
810 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
9- internal static void Write ( this Stream stream , string value )
11+ internal static void Write ( this PoolBufferedStream stream , string value )
1012 {
1113 Span < byte > buffer = stackalloc byte [ value . Length ] ;
1214
@@ -19,7 +21,7 @@ internal static void Write(this Stream stream, string value)
1921 }
2022
2123 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
22- internal static void Write ( this Stream stream , long number )
24+ internal static void Write ( this PoolBufferedStream stream , long number )
2325 {
2426 Span < byte > buffer = stackalloc byte [ 20 ] ;
2527
@@ -34,7 +36,7 @@ internal static void Write(this Stream stream, long number)
3436 }
3537
3638 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
37- internal static void Write ( this Stream stream , ulong number )
39+ internal static void Write ( this PoolBufferedStream stream , ulong number )
3840 {
3941 Span < byte > buffer = stackalloc byte [ 20 ] ;
4042
@@ -49,7 +51,7 @@ internal static void Write(this Stream stream, ulong number)
4951 }
5052
5153 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
52- internal static void Write ( this Stream stream , DateTime time )
54+ internal static void Write ( this PoolBufferedStream stream , DateTime time )
5355 {
5456 Span < char > charBuffer = stackalloc char [ 29 ] ; // RFC1123 format is 29 chars
5557
0 commit comments