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
36eca4de
Commit
36eca4de
authored
Sep 12, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring
parent
9f094d21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HexEncoding.cs
PcapDotNet/src/PcapDotNet.Core.Test/HexEncoding.cs
+3
-3
No files found.
PcapDotNet/src/PcapDotNet.Core.Test/HexEncoding.cs
View file @
36eca4de
...
...
@@ -2,9 +2,9 @@
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading
;
using
PcapDotNet.Base
;
namespace
PcapDotNet.
Base
namespace
PcapDotNet.
Core.Test
{
public
class
HexEncoding
:
Encoding
{
...
...
@@ -26,7 +26,7 @@ namespace PcapDotNet.Base
public
override
int
GetBytes
(
char
[]
chars
,
int
charIndex
,
int
charCount
,
byte
[]
bytes
,
int
byteIndex
)
{
int
originalByteIndex
=
byteIndex
;
IEnumerable
<
char
>
hexChars
=
chars
.
Range
(
charIndex
,
charCount
).
Where
(
IsHexDigit
);
IEnumerable
<
char
>
hexChars
=
Enumerable
.
Where
<
char
>(
chars
.
Range
(
charIndex
,
charCount
),
IsHexDigit
);
IEnumerator
<
char
>
hexCharsEnumerator
=
hexChars
.
GetEnumerator
();
while
(
hexCharsEnumerator
.
MoveNext
())
{
...
...
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