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
940895ae
Commit
940895ae
authored
Jun 09, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP
parent
ed97ea2a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
212 additions
and
39 deletions
+212
-39
IListExtensions.cs
PcapDotNet/src/PcapDotNet.Base/IListExtensions.cs
+8
-0
HttpDatagram.cs
PcapDotNet/src/PcapDotNet.Packets/Http/HttpDatagram.cs
+204
-39
No files found.
PcapDotNet/src/PcapDotNet.Base/IListExtensions.cs
View file @
940895ae
using
System
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
...
...
@@ -20,5 +21,12 @@ namespace PcapDotNet.Base
{
return
new
ReadOnlyCollection
<
T
>(
list
);
}
public
static
IEnumerable
<
T
>
Range
<
T
>(
this
IList
<
T
>
list
,
int
offset
,
int
count
)
{
int
length
=
Math
.
Min
(
offset
+
count
,
list
.
Count
);
for
(
int
i
=
offset
;
i
<
length
;
++
i
)
yield
return
list
[
i
];
}
}
}
\ No newline at end of file
PcapDotNet/src/PcapDotNet.Packets/Http/HttpDatagram.cs
View file @
940895ae
This diff is collapsed.
Click to expand it.
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