Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
4d099490
Commit
4d099490
authored
Aug 03, 2012
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Packet.FromHexadecimalString() overload that takes IDataLink instead of DataLinkKind.
parent
03748780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Packet.cs
PcapDotNet/src/PcapDotNet.Packets/Packet.cs
+6
-1
No files found.
PcapDotNet/src/PcapDotNet.Packets/Packet.cs
View file @
4d099490
...
@@ -15,10 +15,15 @@ namespace PcapDotNet.Packets
...
@@ -15,10 +15,15 @@ namespace PcapDotNet.Packets
/// </summary>
/// </summary>
public
sealed
class
Packet
:
IList
<
byte
>,
IEquatable
<
Packet
>
public
sealed
class
Packet
:
IList
<
byte
>,
IEquatable
<
Packet
>
{
{
public
static
Packet
FromHexadecimalString
(
string
value
,
DateTime
timestamp
,
DataLinkKind
dataLink
)
{
return
FromHexadecimalString
(
value
,
timestamp
,
new
DataLink
(
dataLink
));
}
/// <summary>
/// <summary>
/// Creates a packet from a string that represents bytes in a hexadecimal format.
/// Creates a packet from a string that represents bytes in a hexadecimal format.
/// </summary>
/// </summary>
public
static
Packet
FromHexadecimalString
(
string
value
,
DateTime
timestamp
,
DataLinkKind
dataLink
)
public
static
Packet
FromHexadecimalString
(
string
value
,
DateTime
timestamp
,
IDataLink
dataLink
)
{
{
if
(
value
==
null
)
if
(
value
==
null
)
throw
new
ArgumentNullException
(
"value"
);
throw
new
ArgumentNullException
(
"value"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment