From 79234795fd28c413f4a7d973a64a16ac7d6bd939 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 3 Dec 2018 10:17:22 +0000 Subject: avoid a data copy --- .../Framework/Servers/HttpServer/OSHttpResponse.cs | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs') diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs index b26321b..39d9b13 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs @@ -195,6 +195,42 @@ namespace OpenSim.Framework.Servers.HttpServer } } + public byte[] RawBuffer + { + get + { + return _httpResponse.RawBuffer; + } + set + { + _httpResponse.RawBuffer = value; + } + } + + public int RawBufferStart + { + get + { + return _httpResponse.RawBufferStart; + } + set + { + _httpResponse.RawBufferStart = value; + } + } + + public int RawBufferLen + { + get + { + return _httpResponse.RawBufferLen; + } + set + { + _httpResponse.RawBufferLen = value; + } + } + /// /// Set a redirct location. /// -- cgit v1.1