Skip to content

Commit

Permalink
Make header internal
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Nov 14, 2021
1 parent eed3ebd commit 1214637
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions SteamKit2/SteamKit2/Base/PacketBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ public interface IPacketMsg
/// The source job id.
/// </value>
ulong SourceJobID { get; }
/// <summary>
/// Gets the offset in payload to the body after the header.
/// </summary>
/// <value>
/// The offset in payload after the header.
/// </value>
long BodyOffset { get; }

/// <summary>
/// Gets the underlying data that represents this client message.
Expand Down Expand Up @@ -87,7 +80,7 @@ public sealed class PacketClientMsgProtobuf : IPacketMsg
/// <value>
/// <c>true</c> if this instance is protobuf backed; otherwise, <c>false</c>.
/// </value>
public bool IsProto { get { return true; } }
public bool IsProto => true;
/// <summary>
/// Gets the network message type of this packet message.
/// </summary>
Expand Down Expand Up @@ -116,14 +109,14 @@ public sealed class PacketClientMsgProtobuf : IPacketMsg
/// <value>
/// The header.
/// </value>
public MsgHdrProtoBuf Header { get; }
internal MsgHdrProtoBuf Header;
/// <summary>
/// Gets the offset in payload to the body after the header.
/// </summary>
/// <value>
/// The offset in payload after the header.
/// </value>
public long BodyOffset { get; }
internal long BodyOffset;

byte[] payload;

Expand Down Expand Up @@ -203,14 +196,14 @@ public sealed class PacketClientMsg : IPacketMsg
/// <value>
/// The header.
/// </value>
public ExtendedClientMsgHdr Header { get; }
internal ExtendedClientMsgHdr Header;
/// <summary>
/// Gets the offset in payload to the body after the header.
/// </summary>
/// <value>
/// The offset in payload after the header.
/// </value>
public long BodyOffset { get; }
internal long BodyOffset;

byte[] payload;

Expand Down Expand Up @@ -290,14 +283,14 @@ public sealed class PacketMsg : IPacketMsg
/// <value>
/// The header.
/// </value>
public MsgHdr Header { get; }
internal MsgHdr Header;
/// <summary>
/// Gets the offset in payload to the body after the header.
/// </summary>
/// <value>
/// The offset in payload after the header.
/// </value>
public long BodyOffset { get; }
internal long BodyOffset;

byte[] payload;

Expand Down

0 comments on commit 1214637

Please sign in to comment.