From 41619ca1b1899e8b6bac8106b3077241df05b0b9 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 5 Oct 2015 14:31:00 +0900 Subject: [PATCH] [Modify] Move it --- websocket-sharp/WebSocketFrame.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/WebSocketFrame.cs b/websocket-sharp/WebSocketFrame.cs index 827b8ae6..2d8b5953 100644 --- a/websocket-sharp/WebSocketFrame.cs +++ b/websocket-sharp/WebSocketFrame.cs @@ -131,17 +131,21 @@ namespace WebSocketSharp #endregion - #region Public Properties + #region Internal Properties - public byte[] ExtendedPayloadLength { + internal int ExtendedPayloadLengthCount { get { - return _extPayloadLength; + return _payloadLength < 126 ? 0 : (_payloadLength == 126 ? 2 : 8); } } - public int ExtendedPayloadLengthCount { + #endregion + + #region Public Properties + + public byte[] ExtendedPayloadLength { get { - return _payloadLength < 126 ? 0 : (_payloadLength == 126 ? 2 : 8); + return _extPayloadLength; } }