/// <summary> /// Deserializes the Http2 Close Extension Data. /// </summary> /// <param name="data">The data.</param> /// <returns>Deserialized Extension Data.</returns> public CloseFrameExt DeserializeCloseFrameExt(byte[] data) { var extData = new CloseFrameExt(); extData.StatusCode = BinaryHelper.Int16FromBytes(data[0], data[1], 0); extData.LastGoodSessionId = BinaryHelper.Int32FromBytes(new ArraySegment<byte>(data, 2, 4)); return extData; }
/// <summary> /// Initializes a new instance of the <see cref="CloseFrameEventArgs"/> class. /// </summary> /// <param name="frameExt">The Http Close frame extension data.</param> public CloseFrameEventArgs(CloseFrameExt frameExt) { this.FrameExt = frameExt; }