using System; using System.Collections.Generic; using System.Text; namespace DirectUSB.RawPackets { public class RequestBufferSizeResponse : RawPacket { #region Declarations private int _actualBufferSize; #endregion #region Constructors / Teardown public RequestBufferSizeResponse(RawPacket packet) : base(0x02) { //Get the data we care about back out _actualBufferSize = (packet.Data[0] << 24) | (packet.Data[1] << 16) | (packet.Data[2] << 8) | packet.Data[3]; } #endregion #region Public Properties public int ActualBufferSize { get { return _actualBufferSize; } } #endregion } }