// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNetCore.SignalR.Internal.Encoders { public class PassThroughEncoder : IDataEncoder { public bool TryDecode(ref ReadOnlySpan buffer, out ReadOnlySpan data) { data = buffer; buffer = Array.Empty(); return true; } public byte[] Encode(byte[] payload) { return payload; } } }