Files
Johnny Z 6d1a58df8e Initial Protobuf 2/3 Codec Implementation ( #118) (#163)
Motivation:
Ported/Re-implemented Protobuf codec support into DotNetty

Modifications:
- Added Protobuf 2/3 Codec project
- Added Protobuf 2/3 Codec unit test project.
- Extra: Ported MessageToByteEncoder to DotNetty.Codec.

Result:
Protobuf 2/3 codec supported by DotNetty.
2016-11-16 14:00:06 -08:00

19 lines
484 B
C#

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace DotNetty.Codecs.Tests.Protobuf
{
using DotNetty.Buffers;
static class TestUtil
{
internal static byte[] GetReadableBytes(IByteBuffer byteBuffer)
{
var data = new byte[byteBuffer.ReadableBytes];
byteBuffer.ReadBytes(data);
return data;
}
}
}