You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Buffers/ArrayBufferWriter`1.xml
+60-27Lines changed: 60 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,8 @@
21
21
</Interface>
22
22
</Interfaces>
23
23
<Docs>
24
-
<typeparamname="T">To be added.</typeparam>
25
-
<summary>To be added.</summary>
24
+
<typeparamname="T">The type of the items in this <seecref="T:System.Buffers.ArrayBufferWriter`1" /> instance.</typeparam>
25
+
<summary>Represents a heap-based, array-backed output sink into which <typeparamname="T" /> data can be written.</summary>
26
26
<remarks>To be added.</remarks>
27
27
</Docs>
28
28
<Members>
@@ -39,7 +39,7 @@
39
39
</AssemblyInfo>
40
40
<Parameters />
41
41
<Docs>
42
-
<summary>To be added.</summary>
42
+
<summary>Creates an instance of an <seecref="T:System.Buffers.ArrayBufferWriter`1" /> to which data can be written, with the default initial capacity.</summary>
<paramname="initialCapacity">The minimum capacity with which to initialize the underlying buffer.</param>
63
+
<summary>Creates an instance of an <seecref="T:System.Buffers.ArrayBufferWriter`1" /> to which data can be written, with a specified initial capacity.</summary>
64
64
<remarks>To be added.</remarks>
65
+
<exceptioncref="T:System.ArgumentException">
66
+
<paramrefname="initialCapacity" /> is less than or equal to 0.
67
+
</exception>
65
68
</Docs>
66
69
</Member>
67
70
<MemberMemberName="Advance">
@@ -86,9 +89,20 @@
86
89
<ParameterName="count"Type="System.Int32" />
87
90
</Parameters>
88
91
<Docs>
89
-
<paramname="count">To be added.</param>
90
-
<summary>To be added.</summary>
91
-
<remarks>To be added.</remarks>
92
+
<paramname="count">The number of items written.</param>
93
+
<summary>Notifies the <seecref="T:System.Buffers.IBufferWriter`1" /> that <paramrefname="count" /> items were written to the output <seecref="T:System.Span`1" />/<seecref="T:System.Memory`1" /></summary>
94
+
<remarks>
95
+
<formattype="text/markdown"><![CDATA[
96
+
You must request a new buffer after calling `Advance` to continue writing more data and cannot write to a previously acquired buffer.
The method call attempts to advance past the end of the underlying buffer.
105
+
</exception>
92
106
</Docs>
93
107
</Member>
94
108
<MemberMemberName="Capacity">
@@ -107,8 +121,8 @@
107
121
<ReturnType>System.Int32</ReturnType>
108
122
</ReturnValue>
109
123
<Docs>
110
-
<summary>To be added.</summary>
111
-
<value>To be added.</value>
124
+
<summary>Gets the total amount of space within the underlying buffer.</summary>
125
+
<value>The total capacity of the underlying buffer.</value>
112
126
<remarks>To be added.</remarks>
113
127
</Docs>
114
128
</Member>
@@ -129,8 +143,12 @@
129
143
</ReturnValue>
130
144
<Parameters />
131
145
<Docs>
132
-
<summary>To be added.</summary>
133
-
<remarks>To be added.</remarks>
146
+
<summary>Clears the data written to the underlying buffer.</summary>
147
+
<remarks>
148
+
<formattype="text/markdown"><![CDATA[
149
+
You must clear the <xref:System.Buffers.ArrayBufferWriter`1> before trying to reuse it.
150
+
]]></format>
151
+
</remarks>
134
152
</Docs>
135
153
</Member>
136
154
<MemberMemberName="FreeCapacity">
@@ -149,8 +167,8 @@
149
167
<ReturnType>System.Int32</ReturnType>
150
168
</ReturnValue>
151
169
<Docs>
152
-
<summary>To be added.</summary>
153
-
<value>To be added.</value>
170
+
<summary>Gets the amount of available space that can be written to without forcing the underlying buffer to grow.</summary>
171
+
<value>The space available for writing without forcing the underlying buffer to grow.</value>
154
172
<remarks>To be added.</remarks>
155
173
</Docs>
156
174
</Member>
@@ -175,10 +193,17 @@
175
193
<ParameterName="sizeHint"Type="System.Int32" />
176
194
</Parameters>
177
195
<Docs>
178
-
<paramname="sizeHint">To be added.</param>
179
-
<summary>To be added.</summary>
180
-
<returns>To be added.</returns>
181
-
<remarks>To be added.</remarks>
196
+
<paramname="sizeHint">The minimum requested length of the <seecref="T:System.Memory`1" />.</param>
197
+
<summary>Returns a <seecref="T:System.Memory`1" /> to write to that is at least the length specified by <paramrefname="sizeHint" />.</summary>
198
+
<returns>A <seecref="T:System.Memory`1" /> whose length is at least <paramrefname="sizeHint" />. If <paramrefname="sizeHint" /> is not provided or is equal to 0, some non-empty buffer is returned.</returns>
199
+
<remarks>
200
+
<formattype="text/markdown"><![CDATA[
201
+
This method never returns <xref:System.Memory%601.Empty?displayProperty=nameWithType>.
202
+
]]></format>
203
+
</remarks>
204
+
<exceptioncref="T:System.ArgumentException">
205
+
<paramrefname="sizeHint" /> is negative.
206
+
</exception>
182
207
</Docs>
183
208
</Member>
184
209
<MemberMemberName="GetSpan">
@@ -203,9 +228,17 @@
203
228
</Parameters>
204
229
<Docs>
205
230
<paramname="sizeHint">To be added.</param>
206
-
<summary>To be added.</summary>
207
-
<returns>To be added.</returns>
208
-
<remarks>To be added.</remarks>
231
+
<summary>Returns a <seecref="T:System.Span`1" /> to write to that is at least a specified length.
232
+
</summary>
233
+
<returns>A span of at least <paramrefname="sizeHint" /> in length. If <paramrefname="sizeHint" /> is not provided or is equal to 0, some non-empty buffer is returned.</returns>
234
+
<remarks>
235
+
<formattype="text/markdown"><![CDATA[
236
+
This method never returns <xref:System.Memory%601.Empty?displayProperty=nameWithType>.
237
+
]]></format>
238
+
</remarks>
239
+
<exceptioncref="T:System.ArgumentException">
240
+
<paramrefname="sizeHint" /> is negative.
241
+
</exception>
209
242
</Docs>
210
243
</Member>
211
244
<MemberMemberName="WrittenCount">
@@ -224,8 +257,8 @@
224
257
<ReturnType>System.Int32</ReturnType>
225
258
</ReturnValue>
226
259
<Docs>
227
-
<summary>To be added.</summary>
228
-
<value>To be added.</value>
260
+
<summary>Gets the amount of data written to the underlying buffer.</summary>
261
+
<value>The amount of data written to the underlying buffer.</value>
Copy file name to clipboardExpand all lines: xml/System.Buffers/SequenceReaderExtensions.xml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,8 @@
40
40
<Docs>
41
41
<paramname="reader">To be added.</param>
42
42
<paramname="value">To be added.</param>
43
-
<summary>To be added.</summary>
44
-
<returns>To be added.</returns>
43
+
<summary>Reads a big-endian <seecref="T:System.Int16" />.</summary>
44
+
<returns><seelangword="true" /> if the read operation is successful; <seelangword="false" /> if there isn't enough data for an <seecref="T:System.Int16" />.</returns>
45
45
<remarks>To be added.</remarks>
46
46
</Docs>
47
47
</Member>
@@ -67,8 +67,8 @@
67
67
<Docs>
68
68
<paramname="reader">To be added.</param>
69
69
<paramname="value">To be added.</param>
70
-
<summary>To be added.</summary>
71
-
<returns>To be added.</returns>
70
+
<summary>Reads a big-endian <seecref="T:System.Int32" />.</summary>
71
+
<returns><seelangword="true" /> if the read operation is successful; <seelangword="false" /> if there isn't enough data for an <seecref="T:System.Int32" />.</returns>
72
72
<remarks>To be added.</remarks>
73
73
</Docs>
74
74
</Member>
@@ -94,10 +94,10 @@
94
94
<Docs>
95
95
<paramname="reader">To be added.</param>
96
96
<paramname="value">To be added.</param>
97
-
<summary>To be added.</summary>
98
-
<returns>To be added.</returns>
97
+
<summary>Reads a little-endian <seecref="T:System.Int16" />.</summary>
98
+
<returns><seelangword="true" /> if the read operation is successful; <seelangword="false" /> if there isn't enough data for an <seecref="T:System.Int16" />.</returns>
0 commit comments