NLog.AbstractTcpSocket.trimmedBuffer C# (CSharp) Method

trimmedBuffer() protected method

protected trimmedBuffer ( byte buffer, int length ) : byte[]
buffer byte
length int
return byte[]
        protected byte[] trimmedBuffer(byte[] buffer, int length)
        {
            var trimmed = new byte[length];
            Array.Copy(buffer, trimmed, length);
            return trimmed;
        }