Skip to content

Commit c9c14e0

Browse files
committed
commit master branch
1 parent 0df5960 commit c9c14e0

File tree

336 files changed

+73304
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+73304
-0
lines changed

Build.bat

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
3+
set fdir=%WINDIR%\Microsoft.NET\Framework64
4+
5+
if not exist %fdir% (
6+
set fdir=%WINDIR%\Microsoft.NET\Framework
7+
)
8+
9+
set msbuild=%fdir%\v4.0.30319\msbuild.exe
10+
11+
%msbuild% SuperSocket.2010.sln /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\bin\Net40\Debug
12+
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
13+
14+
%msbuild% SuperSocket.2010.sln /p:Configuration=Release /t:Rebuild /p:OutputPath=..\bin\Net40\Release
15+
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
16+
17+
%msbuild% SuperSocket.2010.NET35.sln /p:Configuration=Debug /t:Rebuild /p:OutputPath=..\bin\Net35\Debug
18+
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
19+
20+
%msbuild% SuperSocket.2010.NET35.sln /p:Configuration=Release /t:Rebuild /p:OutputPath=..\bin\Net35\Release
21+
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G"
22+
23+
pause

BuildQuickStart.bat

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
set fdir=%WINDIR%\Microsoft.NET\Framework64
4+
5+
if not exist %fdir% (
6+
set fdir=%WINDIR%\Microsoft.NET\Framework
7+
)
8+
9+
set msbuild=%fdir%\v4.0.30319\msbuild.exe
10+
11+
%msbuild% QuickStart\QuickStart.sln /p:Configuration=Debug /t:Rebuild
12+
pause

Common/ArraySegmentEx.cs

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace SuperSocket.Common
7+
{
8+
class ArraySegmentEx<T>
9+
{
10+
public ArraySegmentEx(T[] array, int offset, int count)
11+
{
12+
Array = array;
13+
Offset = offset;
14+
Count = count;
15+
}
16+
/// <summary>
17+
/// Gets the array.
18+
/// </summary>
19+
public T[] Array { get; private set; }
20+
21+
/// <summary>
22+
/// Gets the count.
23+
/// </summary>
24+
public int Count { get; private set; }
25+
26+
/// <summary>
27+
/// Gets the offset.
28+
/// </summary>
29+
public int Offset { get; private set; }
30+
31+
public int From { get; set; }
32+
33+
public int To { get; set; }
34+
}
35+
}

0 commit comments

Comments
 (0)