NetSharp

NetSharp.git
git clone git://git.lenczewski.org/NetSharp.git
Log | Files | Refs | README | LICENSE

commit c99bb22307a46534908cf8aaeda464330be6a588
parent 1a28643dd849667c1407dfca45f3988185f86c6b
Author: w79958ml <mikolaj.lenczewski@student.manchester.ac.uk>
Date:   Wed,  7 Oct 2020 23:55:52 +0100

Added omnisharp.json. NOTE: need to decide on single formatter

Diffstat:
MNetSharp/NetSharp/NetSharp.xml | 65++++++++++++++++++++++++-----------------------------------------
MNetSharp/NetSharp/Utils/SlimObjectPool.cs | 3+--
ANetSharp/omnisharp.json | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 85 insertions(+), 43 deletions(-)

diff --git a/NetSharp/NetSharp/NetSharp.xml b/NetSharp/NetSharp/NetSharp.xml @@ -98,37 +98,6 @@ The number of bytes of data sent to the remote endpoint. </returns> </member> - <member name="T:NetSharp.Properties.Resources"> - <summary> - A strongly-typed resource class, for looking up localized strings, etc. - </summary> - </member> - <member name="P:NetSharp.Properties.Resources.Culture"> - <summary> - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - </summary> - </member> - <member name="P:NetSharp.Properties.Resources.RawDatagramNetworkReaderRentedBufferSizeError"> - <summary> - Looks up a localized string similar to Cannot rent a temporary buffer of size: {0} bytes. The maximum temporary buffer size is {1} bytes. - </summary> - </member> - <member name="P:NetSharp.Properties.Resources.RawDatagramSizeError"> - <summary> - Looks up a localized string similar to The datagram size must be between 0 and 65507 bytes. - </summary> - </member> - <member name="P:NetSharp.Properties.Resources.RawStreamMessageSizeUnderflow"> - <summary> - Looks up a localized string similar to The maximum pooled message size must be greater than 0 bytes. - </summary> - </member> - <member name="P:NetSharp.Properties.Resources.ResourceManager"> - <summary> - Returns the cached ResourceManager instance used by this class. - </summary> - </member> <member name="T:NetSharp.Raw.Datagram.RawDatagramRequestHandler"> <summary> Represents a method that handles a request received by a <see cref="T:NetSharp.Raw.Datagram.RawDatagramNetworkReader" />. @@ -488,20 +457,35 @@ The buffer into which to serialise the current instance. Must be at least of size <see cref="F:NetSharp.Raw.Stream.RawStreamPacketHeader.TotalSize" />. </param> </member> - <member name="T:NetSharp.Utils.Conversion.EndianAwareBitConverter"> + <member name="T:NetSharp.Properties.Resources"> <summary> - Wraps the <see cref="T:System.BitConverter" /> class to provide conversion that is endian-aware. + A strongly-typed resource class, for looking up localized strings, etc. </summary> </member> - <member name="M:NetSharp.Utils.Conversion.EndianAwareBitConverter.GetBytes(System.Int32,System.Boolean)"> - <inheritdoc cref="M:System.BitConverter.GetBytes(System.Int32)" /> + <member name="P:NetSharp.Properties.Resources.Culture"> + <summary> + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + </summary> </member> - <member name="M:NetSharp.Utils.Conversion.EndianAwareBitConverter.ToInt32(System.Span{System.Byte},System.Boolean)"> - <inheritdoc cref="M:System.BitConverter.ToInt32(System.ReadOnlySpan{System.Byte})" /> + <member name="P:NetSharp.Properties.Resources.RawDatagramNetworkReaderRentedBufferSizeError"> + <summary> + Looks up a localized string similar to Cannot rent a temporary buffer of size: {0} bytes. The maximum temporary buffer size is {1} bytes. + </summary> </member> - <member name="M:NetSharp.Utils.Conversion.EndianAwareBitConverter.ReverseAsNeeded(System.Span{System.Byte},System.Boolean)"> + <member name="P:NetSharp.Properties.Resources.RawDatagramSizeError"> + <summary> + Looks up a localized string similar to The datagram size must be between 0 and 65507 bytes. + </summary> + </member> + <member name="P:NetSharp.Properties.Resources.RawStreamMessageSizeUnderflow"> <summary> - Reverses the given bytes if the endian-nes doesn't match. + Looks up a localized string similar to The maximum pooled message size must be greater than 0 bytes. + </summary> + </member> + <member name="P:NetSharp.Properties.Resources.ResourceManager"> + <summary> + Returns the cached ResourceManager instance used by this class. </summary> </member> <member name="T:NetSharp.Utils.SlimObjectPool`1"> @@ -531,8 +515,7 @@ </member> <member name="T:NetSharp.Utils.SlimObjectPool`1.CanReuseObjectPredicate"> <summary> - Delegate method to check whether the given <paramref name="instance" /> can and should be placed back into the pool. If <c>true</c> is - returned, the <paramref name="instance" /> is reset and placed back into the pool. Otherwise, the instance is destroyed. + Delegate method to check whether the given <paramref name="instance" /> can and should be placed back into the pool. If <c>true</c> is returned, the <paramref name="instance" /> is reset and placed back into the pool. Otherwise, the instance is destroyed. </summary> <param name="instance"> The instance to check. diff --git a/NetSharp/NetSharp/Utils/SlimObjectPool.cs b/NetSharp/NetSharp/Utils/SlimObjectPool.cs @@ -55,8 +55,7 @@ namespace NetSharp.Utils } /// <summary> - /// Delegate method to check whether the given <paramref name="instance" /> can and should be placed back into the pool. If <c>true</c> is - /// returned, the <paramref name="instance" /> is reset and placed back into the pool. Otherwise, the instance is destroyed. + /// Delegate method to check whether the given <paramref name="instance" /> can and should be placed back into the pool. If <c>true</c> is returned, the <paramref name="instance" /> is reset and placed back into the pool. Otherwise, the instance is destroyed. /// </summary> /// <param name="instance"> /// The instance to check. diff --git a/NetSharp/omnisharp.json b/NetSharp/omnisharp.json @@ -0,0 +1,60 @@ +{ + "FormattingOptions": { + "newLine": "\\n", + "useTabs": true, + "tabSize": 4, + "indentationSize": 4, + + "SpacingAfterMethodDeclarationName": false, + "SpaceWithinMethodDeclarationParenthesis": false, + "SpaceBetweenEmptyMethodDeclarationParentheses": false, + "SpaceAfterMethodCallName": false, + "SpaceWithinMethodCallParentheses": false, + "SpaceBetweenEmptyMethodCallParentheses": false, + "SpaceAfterControlFlowStatementKeyword": true, + "SpaceWithinExpressionParentheses": false, + "SpaceWithinCastParentheses": false, + "SpaceWithinOtherParentheses": false, + "SpaceAfterCast": true, + "SpacesIgnoreAroundVariableDeclaration": false, + "SpaceBeforeOpenSquareBracket": false, + "SpaceBetweenEmptySquareBrackets": false, + "SpaceWithinSquareBrackets": false, + "SpaceAfterColonInBaseTypeDeclaration": true, + "SpaceAfterComma": true, + "SpaceAfterDot": false, + "SpaceAfterSemicolonsInForStatement": true, + "SpaceBeforeColonInBaseTypeDeclaration": true, + "SpaceBeforeComma": false, + "SpaceBeforeDot": false, + "SpaceBeforeSemicolonsInForStatement": false, + "SpacingAroundBinaryOperator": "single", + + "IndentBraces": false, + "IndentBlock": true, + "IndentSwitchSection": true, + "IndentSwitchCaseSection": false, + "IndentSwitchCaseSectionWhenBlock": true, + + "LabelPositioning": "oneLess", + + "WrappingPreservesSingleLine": true, + "WrappingKeepStatementsOnSingleLine": true, + + "NewLinesForBracesInTypes": true, + "NewLinesForBracesInMethods": true, + "NewLinesForBracesInProperties": true, + "NewLinesForBracesInAccessors": true, + "NewLinesForBracesInAnonymousMethods": true, + "NewLinesForBracesInControlBlocks": true, + "NewLinesForBracesInAnonymousTypes": true, + "NewLinesForBracesInObjectCollcetionArrayInitializers": true, + "NewLinesForBracesInLambdaExpressionBody": true, + "NewLineForElse": true, + "NewLineForCatch": true, + "NewLineForFinally": true, + "NewLineForMembersInObjectInit": true, + "NewLineForMembersInAnonymousTypes": true, + "NewLineForClausesInQuery": true + } +}