Microsoft.Http.StreamExtensions.ConsumeAllBytesAndClose C# (CSharp) Méthode

ConsumeAllBytesAndClose() public static méthode

public static ConsumeAllBytesAndClose ( this stream ) : long
stream this
Résultat long
        public static long ConsumeAllBytesAndClose(this Stream stream)
        {
            if (drainBuffer == null)
            {
                drainBuffer = new byte[maxSize];
            }

            return stream.CopyAndCloseSource(null, null);
        }