Commit e94f56bb authored by Brickner_cp's avatar Brickner_cp

Code Analysis and Documentation - 5 warnings left.

parent 07856fa3
...@@ -224,14 +224,14 @@ namespace PcapDotNet.Packets ...@@ -224,14 +224,14 @@ namespace PcapDotNet.Packets
offset += UInt48.SizeOf; offset += UInt48.SizeOf;
return result; return result;
} }
/*
/// <!--summary> /// <summary>
/// Reads 8 bytes from a specific offset as an int with a given endianity. /// Reads 8 bytes from a specific offset as an int with a given endianity.
/// </summary> /// </summary>
/// <param name="buffer">The buffer to read the bytes from.</param> /// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="offset">The offset in the buffer to start reading.</param> /// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param> /// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns--> /// <returns>The value converted from the read bytes according to the endianity.</returns>
// public static long ReadLong(this byte[] buffer, int offset, Endianity endianity) // public static long ReadLong(this byte[] buffer, int offset, Endianity endianity)
// { // {
// long value = ReadLong(buffer, offset); // long value = ReadLong(buffer, offset);
...@@ -239,19 +239,21 @@ namespace PcapDotNet.Packets ...@@ -239,19 +239,21 @@ namespace PcapDotNet.Packets
// value = IPAddress.HostToNetworkOrder(value); // value = IPAddress.HostToNetworkOrder(value);
// return value; // return value;
// } // }
*/
/// <!--summary> /*
/// <summary>
/// Reads 8 bytes from a specific offset as a ulong with a given endianity. /// Reads 8 bytes from a specific offset as a ulong with a given endianity.
/// </summary> /// </summary>
/// <param name="buffer">The buffer to read the bytes from.</param> /// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="offset">The offset in the buffer to start reading.</param> /// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param> /// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns--> /// <returns>The value converted from the read bytes according to the endianity.</returns>
// public static ulong ReadULong(this byte[] buffer, int offset, Endianity endianity) // public static ulong ReadULong(this byte[] buffer, int offset, Endianity endianity)
// { // {
// return (ulong)ReadLong(buffer, offset, endianity); // return (ulong)ReadLong(buffer, offset, endianity);
// } // }
*/
/// <summary> /// <summary>
/// Reads 6 bytes from a specific offset as a MacAddress with a given endianity. /// Reads 6 bytes from a specific offset as a MacAddress with a given endianity.
/// </summary> /// </summary>
......
...@@ -220,18 +220,18 @@ namespace PcapDotNet.Packets ...@@ -220,18 +220,18 @@ namespace PcapDotNet.Packets
{ {
return Buffer.ReadUInt(StartOffset + offset, endianity); return Buffer.ReadUInt(StartOffset + offset, endianity);
} }
/*
/// <!--summary> /// <summary>
/// Reads 8 bytes from a specific offset in the datagram as a ulong with a given endianity. /// Reads 8 bytes from a specific offset in the datagram as a ulong with a given endianity.
/// </summary> /// </summary>
/// <param name="offset">The offset in the datagram to start reading.</param> /// <param name="offset">The offset in the datagram to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param> /// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns--> /// <returns>The value converted from the read bytes according to the endianity.</returns>
// protected ulong ReadULong(int offset, Endianity endianity) // protected ulong ReadULong(int offset, Endianity endianity)
// { // {
// return Buffer.ReadULong(StartOffset + offset, endianity); // return Buffer.ReadULong(StartOffset + offset, endianity);
// } // }
*/
/// <summary> /// <summary>
/// Reads 6 bytes from a specific offset in the datagram as a MacAddress with a given endianity. /// Reads 6 bytes from a specific offset in the datagram as a MacAddress with a given endianity.
/// </summary> /// </summary>
......
...@@ -14,6 +14,10 @@ namespace PcapDotNet.Packets.Igmp ...@@ -14,6 +14,10 @@ namespace PcapDotNet.Packets.Igmp
/// </summary> /// </summary>
public class IgmpQueryVersion3Layer : IgmpLayer, IIgmpLayerWithGroupAddress public class IgmpQueryVersion3Layer : IgmpLayer, IIgmpLayerWithGroupAddress
{ {
/// <summary>
/// Creates an instance of an IGMP Query Version 3 layer.
/// Default SourceAddresses is no addresses.
/// </summary>
public IgmpQueryVersion3Layer() public IgmpQueryVersion3Layer()
{ {
SourceAddresses = new IpV4Address[0].AsReadOnly(); SourceAddresses = new IpV4Address[0].AsReadOnly();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment