Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
tsai
StackExchange.Redis
Commits
996b182f
Commit
996b182f
authored
Jun 14, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipeline reading code; completely non-compiling right now
parent
6af1811b
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
290 additions
and
248 deletions
+290
-248
StackExchange.Redis.csproj
StackExchange.Redis/StackExchange.Redis.csproj
+1
-0
PhysicalConnection.cs
...kExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
+202
-147
RawResult.cs
StackExchange.Redis/StackExchange/Redis/RawResult.cs
+76
-91
RedisValue.cs
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
+7
-6
SocketManager.cs
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
+4
-4
No files found.
StackExchange.Redis/StackExchange.Redis.csproj
View file @
996b182f
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<OutputTypeEx>Library</OutputTypeEx>
<OutputTypeEx>Library</OutputTypeEx>
<SignAssembly>true</SignAssembly>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<LangVersion>7.2</LangVersion>
</PropertyGroup>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net46' ">
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net46' ">
...
...
StackExchange.Redis/StackExchange/Redis/PhysicalConnection.cs
View file @
996b182f
This diff is collapsed.
Click to expand it.
StackExchange.Redis/StackExchange/Redis/RawResult.cs
View file @
996b182f
This diff is collapsed.
Click to expand it.
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
View file @
996b182f
...
@@ -189,17 +189,18 @@ internal static unsafe int GetHashCode(byte[] value)
...
@@ -189,17 +189,18 @@ internal static unsafe int GetHashCode(byte[] value)
return
acc
;
return
acc
;
}
}
}
}
internal
static
bool
TryParseInt64
(
byte
[]
value
,
int
offset
,
int
count
,
out
long
result
)
internal
static
bool
TryParseInt64
(
byte
[]
value
,
int
offset
,
int
count
,
out
long
result
)
=>
TryParseInt64
(
new
ReadOnlySpan
<
byte
>(
value
,
offset
,
count
),
out
result
);
internal
static
bool
TryParseInt64
(
ReadOnlySpan
<
byte
>
value
,
out
long
result
)
{
{
result
=
0
;
result
=
0
;
if
(
value
==
null
||
count
<=
0
)
return
false
;
if
(
value
.
IsEmpty
)
return
false
;
checked
checked
{
{
int
max
=
offset
+
count
;
int
max
=
value
.
Length
;
if
(
value
[
offset
]
==
'-'
)
if
(
value
[
0
]
==
'-'
)
{
{
for
(
int
i
=
offset
+
1
;
i
<
max
;
i
++)
for
(
int
i
=
1
;
i
<
max
;
i
++)
{
{
var
b
=
value
[
i
];
var
b
=
value
[
i
];
if
(
b
<
'0'
||
b
>
'9'
)
return
false
;
if
(
b
<
'0'
||
b
>
'9'
)
return
false
;
...
@@ -209,7 +210,7 @@ internal static bool TryParseInt64(byte[] value, int offset, int count, out long
...
@@ -209,7 +210,7 @@ internal static bool TryParseInt64(byte[] value, int offset, int count, out long
}
}
else
else
{
{
for
(
int
i
=
offset
;
i
<
max
;
i
++)
for
(
int
i
=
0
;
i
<
max
;
i
++)
{
{
var
b
=
value
[
i
];
var
b
=
value
[
i
];
if
(
b
<
'0'
||
b
>
'9'
)
return
false
;
if
(
b
<
'0'
||
b
>
'9'
)
return
false
;
...
...
StackExchange.Redis/StackExchange/Redis/SocketManager.cs
View file @
996b182f
...
@@ -37,10 +37,10 @@ internal partial interface ISocketCallback
...
@@ -37,10 +37,10 @@ internal partial interface ISocketCallback
void
OnHeartbeat
();
void
OnHeartbeat
();
/// <summary>
///
//
<summary>
/// Indicates that data is available on the socket, and that the consumer should read synchronously from the socket while there is data
///
//
Indicates that data is available on the socket, and that the consumer should read synchronously from the socket while there is data
/// </summary>
///
//
</summary>
void
Read
();
//
void Read();
/// <summary>
/// <summary>
/// Indicates that we cannot know whether data is available, and that the consume should commence reading asynchronously
/// Indicates that we cannot know whether data is available, and that the consume should commence reading asynchronously
...
...
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