Skip to content

Commit 4a6bc40

Browse files
committed
开始用System.IO.Pipelines库重构中。。。
1 parent 881db56 commit 4a6bc40

File tree

4 files changed

+241
-277
lines changed

4 files changed

+241
-277
lines changed

Quick.Protocol/Exceptions/ProtocolException.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
using System;
2+
using System.Buffers;
23
using System.Collections.Generic;
34
using System.Text;
45

56
namespace Quick.Protocol.Exceptions
67
{
78
public class ProtocolException : Exception
89
{
9-
public ArraySegment<byte> ReadBuffer { get; set; }
10-
public ProtocolException(ArraySegment<byte> readBuffer, string message)
10+
public ReadOnlySequence<byte> ReadBuffer { get; set; }
11+
public ProtocolException(ReadOnlySequence<byte> readBuffer, string message)
1112
: base(message)
1213
{
1314
ReadBuffer = readBuffer;

0 commit comments

Comments
 (0)