Commit a9c94048 authored by Brickner_cp's avatar Brickner_cp

Use DataSegment instead of Datagram.

parent 01e9cec7
......@@ -749,12 +749,9 @@ namespace PcapDotNet.Packets
/// <param name="buffer">The buffer to write the value to.</param>
/// <param name="offset">The offset in the buffer to start writing.</param>
/// <param name="value">The value to write.</param>
public static void Write(this byte[] buffer, int offset, Datagram value)
public static void Write(this byte[] buffer, int offset, DataSegment value)
{
if (value == null)
throw new ArgumentNullException("value");
value.Write(buffer, offset);
buffer.Write(ref offset, value);
}
/// <summary>
......
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