Skip to content

Commit c90ed2b

Browse files
committed
Initial release of FixedLengthMemoryPool
0 parents  commit c90ed2b

19 files changed

+931
-0
lines changed

.appveyor.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
2+
# version format
3+
version: 0.0.{build}
4+
5+
# Do not build on tags (GitHub and BitBucket)
6+
skip_tags: false
7+
8+
# Start builds on tags only (GitHub and BitBucket)
9+
skip_non_tags: false
10+
11+
# Skipping commits with particular message or from specific user
12+
skip_commits:
13+
message: /Skip CI/ # Regex for matching commit message
14+
15+
# Do not build feature branch with open Pull Requests
16+
skip_branch_with_pr: true
17+
18+
#---------------------------------#
19+
# environment configuration #
20+
#---------------------------------#
21+
22+
# Build worker image (VM template)
23+
image: Visual Studio 2017
24+
25+
# scripts that are called at very beginning, before repo cloning
26+
init:
27+
- git config --global core.autocrlf input
28+
29+
# environment variables
30+
environment:
31+
# this is how to set encrypted variable. Go to "Encrypt data" page in account menu to encrypt data.
32+
NUGET_API_KEY:
33+
secure: +Qor7qH6REVQKnwKWnPnTt9vMIlk3knVatE7zySAPvm+ZQdedf4GllTUYg2mmlCC
34+
35+
# scripts that run after cloning repository
36+
install:
37+
# to run script as a PowerShell command prepend it with ps:
38+
- ps: .\scripts\set-version.ps1
39+
- ps: mkdir -Force $env:APPVEYOR_BUILD_FOLDER\.nupkgs | Out-Null
40+
- ps: Get-ChildItem $env:APPVEYOR_BUILD_FOLDER\.nupkgs | Remove-Item
41+
42+
#---------------------------------#
43+
# build configuration #
44+
#---------------------------------#
45+
configuration: Release
46+
47+
# to run your custom scripts instead of automatic MSBuild
48+
build_script:
49+
- ps: dotnet build -c Release
50+
- ps: dotnet pack --no-build -c Release /property:Version=$env:APPVEYOR_BUILD_VERSION /property:PackageOutputPath=$env:APPVEYOR_BUILD_FOLDER\.nupkgs
51+
52+
# to run your custom scripts instead of automatic tests
53+
test_script:
54+
- dotnet test -c Release --no-build ./tests/progaudi.buffers.tests/progaudi.buffers.tests.csproj
55+
56+
#---------------------------------#
57+
# deployment configuration #
58+
#---------------------------------#
59+
artifacts:
60+
- path: .nupkgs\*.nupkg
61+
62+
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
63+
# provider names are case-sensitive!
64+
deploy_script:
65+
- ps: dotnet nuget push .nupkgs\progaudi.buffers.$env:APPVEYOR_BUILD_VERSION.nupkg -k $env:NUGET_API_KEY -s https://api.nuget.org/v3/index.json

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/bin
2+
**/obj
3+
.vs
4+
.git
5+
*.user
6+
**/*.user
7+
Dockerfile
8+
Dockerfile.*

.editorconfig

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# examples are here: http://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
charset = utf-8
11+
12+
[*.{yml,yaml}]
13+
indent_size = 2
14+
15+
[*.cs]
16+
# .NET Code Style Settings
17+
## Use this or not
18+
dotnet_style_qualification_for_field = false:error
19+
dotnet_style_qualification_for_property = false:error
20+
dotnet_style_qualification_for_method = false:error
21+
dotnet_style_qualification_for_event = false:error
22+
23+
## use int or Int32
24+
dotnet_style_predefined_type_for_locals_parameters_members = true:error
25+
dotnet_style_predefined_type_for_member_access = true:error
26+
27+
## Modifier preferences
28+
dotnet_style_require_accessibility_modifiers = always:error
29+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error
30+
dotnet_style_readonly_field = true:error
31+
32+
## use of object initializers, collection initializers, explicit tuple names
33+
dotnet_style_object_initializer = true:error
34+
dotnet_style_collection_initializer = true:error
35+
dotnet_style_explicit_tuple_names = true:error
36+
dotnet_prefer_inferred_tuple_names = true:error
37+
dotnet_prefer_inferred_anonymous_type_member_names = true:error
38+
39+
## "Null" checking preferences
40+
dotnet_style_coalesce_expression = true:error
41+
dotnet_style_null_propagation = true:error
42+
43+
## to var or not to var
44+
csharp_style_var_for_built_in_types = true:error
45+
csharp_style_var_when_type_is_apparent = true:error
46+
csharp_style_var_elsewhere = true:error
47+
48+
## => for bodies or not
49+
csharp_style_expression_bodied_methods = when_on_single_line:error
50+
csharp_style_expression_bodied_constructors = when_on_single_line:error
51+
csharp_style_expression_bodied_operators = when_on_single_line:error
52+
csharp_style_expression_bodied_properties = when_on_single_line:error
53+
csharp_style_expression_bodied_indexers = when_on_single_line:error
54+
csharp_style_expression_bodied_accessors = when_on_single_line:error
55+
56+
## pattern matching
57+
csharp_style_pattern_matching_over_is_with_cast_check = true:error
58+
csharp_style_pattern_matching_over_as_with_null_check = true:error
59+
csharp_style_inlined_variable_declaration = true:error
60+
61+
## default expressions, deconstructed variables, and local functions over anonymous functions.
62+
csharp_prefer_simple_default_expression = true:error
63+
csharp_style_deconstructed_variable_declaration = true:suggestion
64+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
65+
66+
## null check
67+
csharp_style_throw_expression = true:error
68+
csharp_style_conditional_delegate_call = true:error
69+
70+
## braces around one liner
71+
csharp_prefer_braces = false:suggestion
72+
73+
# .NET formatting settings
74+
## Organize usings
75+
dotnet_sort_system_directives_first = true
76+
77+
## Newline Options
78+
csharp_new_line_before_open_brace = all
79+
csharp_new_line_before_else = true
80+
csharp_new_line_before_catch = true
81+
csharp_new_line_before_finally = true
82+
csharp_new_line_before_members_in_object_initializers = true
83+
csharp_new_line_before_members_in_anonymous_types = true
84+
csharp_new_line_between_query_expression_clauses = true
85+
86+
## Indentation options
87+
csharp_indent_case_contents = true
88+
csharp_indent_switch_labels = true
89+
csharp_indent_labels = one_less_than_current
90+
91+
## Spacing Options
92+
csharp_space_after_cast = false
93+
csharp_space_after_keywords_in_control_flow_statements = true
94+
csharp_space_between_method_declaration_parameter_list_parentheses = false
95+
csharp_space_between_method_call_parameter_list_parentheses = false
96+
csharp_space_between_parentheses = false
97+
98+
## Wrapping options
99+
100+
csharp_preserve_single_line_statements = true
101+
csharp_preserve_single_line_blocks = true
102+
103+
# Naming style
104+
105+
## Source: https://github.com/kentcb/EditorConfigReference/blob/master/.editorconfig
106+
dotnet_naming_symbols.private_field_symbol.applicable_kinds = field
107+
dotnet_naming_symbols.private_field_symbol.applicable_accessibilities = private
108+
dotnet_naming_style.private_field_style.required_prefix = _
109+
dotnet_naming_style.private_field_style.capitalization = camel_case
110+
dotnet_naming_rule.private_fields_are_camel_case.severity = error
111+
dotnet_naming_rule.private_fields_are_camel_case.symbols = private_field_symbol
112+
dotnet_naming_rule.private_fields_are_camel_case.style = private_field_style
113+
114+
dotnet_naming_symbols.non_private_field_symbol.applicable_kinds = field
115+
dotnet_naming_symbols.non_private_field_symbol.applicable_accessibilities = public,internal,friend,protected,protected_internal,protected_friend
116+
dotnet_naming_style.non_private_field_style.capitalization = pascal_case
117+
dotnet_naming_rule.non_private_fields_are_pascal_case.severity = error
118+
dotnet_naming_rule.non_private_fields_are_pascal_case.symbols = non_private_field_symbol
119+
dotnet_naming_rule.non_private_fields_are_pascal_case.style = non_private_field_style
120+
121+
dotnet_naming_symbols.parameter_symbol.applicable_kinds = parameter
122+
dotnet_naming_style.parameter_style.capitalization = camel_case
123+
dotnet_naming_rule.parameters_are_camel_case.severity = error
124+
dotnet_naming_rule.parameters_are_camel_case.symbols = parameter_symbol
125+
dotnet_naming_rule.parameters_are_camel_case.style = parameter_style
126+
127+
dotnet_naming_symbols.non_interface_type_symbol.applicable_kinds = class,struct,enum,delegate
128+
dotnet_naming_style.non_interface_type_style.capitalization = pascal_case
129+
dotnet_naming_rule.non_interface_types_are_pascal_case.severity = error
130+
dotnet_naming_rule.non_interface_types_are_pascal_case.symbols = non_interface_type_symbol
131+
dotnet_naming_rule.non_interface_types_are_pascal_case.style = non_interface_type_style
132+
133+
dotnet_naming_symbols.interface_type_symbol.applicable_kinds = interface
134+
dotnet_naming_style.interface_type_style.capitalization = pascal_case
135+
dotnet_naming_style.interface_type_style.required_prefix = I
136+
dotnet_naming_rule.interface_types_must_be_prefixed_with_I.severity = error
137+
dotnet_naming_rule.interface_types_must_be_prefixed_with_I.symbols = interface_type_symbol
138+
dotnet_naming_rule.interface_types_must_be_prefixed_with_I.style = interface_type_style
139+
140+
dotnet_naming_symbols.member_symbol.applicable_kinds = method,property,event
141+
dotnet_naming_style.member_style.capitalization = pascal_case
142+
dotnet_naming_rule.members_are_pascal_case.severity = error
143+
dotnet_naming_rule.members_are_pascal_case.symbols = member_symbol
144+
dotnet_naming_rule.members_are_pascal_case.style = member_style

0 commit comments

Comments
 (0)