| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Diagnostics; |
| | | 5 | | using System.IO; |
| | | 6 | | using System.IO.Pipelines; |
| | | 7 | | using System.Text.Json.Serialization.Converters; |
| | | 8 | | using System.Threading; |
| | | 9 | | using System.Threading.Tasks; |
| | | 10 | | |
| | | 11 | | namespace System.Text.Json.Serialization.Metadata |
| | | 12 | | { |
| | | 13 | | public partial class JsonTypeInfo<T> |
| | | 14 | | { |
| | | 15 | | // This section provides helper methods guiding root-level serialization |
| | | 16 | | // of values corresponding according to the current JsonTypeInfo configuration. |
| | | 17 | | |
| | | 18 | | // Root serialization method for sync, non-streaming serialization |
| | | 19 | | internal void Serialize( |
| | | 20 | | Utf8JsonWriter writer, |
| | | 21 | | in T? rootValue, |
| | | 22 | | object? rootValueBoxed = null) |
| | 0 | 23 | | { |
| | 0 | 24 | | Debug.Assert(IsConfigured); |
| | 0 | 25 | | Debug.Assert(rootValueBoxed is null || rootValueBoxed is T); |
| | | 26 | | |
| | 0 | 27 | | if (CanUseSerializeHandler) |
| | 0 | 28 | | { |
| | | 29 | | // Short-circuit calls into SerializeHandler, if supported. |
| | | 30 | | // Even though this is already handled by JsonMetadataServicesConverter, |
| | | 31 | | // this avoids creating a WriteStack and calling into the converter infrastructure. |
| | | 32 | | |
| | 0 | 33 | | Debug.Assert(SerializeHandler is not null); |
| | 0 | 34 | | Debug.Assert(Converter is JsonMetadataServicesConverter<T>); |
| | | 35 | | |
| | 0 | 36 | | SerializeHandler(writer, rootValue!); |
| | 0 | 37 | | writer.Flush(); |
| | 0 | 38 | | } |
| | 0 | 39 | | else if ( |
| | 0 | 40 | | #if NET |
| | 0 | 41 | | !typeof(T).IsValueType && |
| | 0 | 42 | | #endif |
| | 0 | 43 | | Converter.CanBePolymorphic && |
| | 0 | 44 | | rootValue is not null && |
| | 0 | 45 | | Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? derivedTypeInfo)) |
| | 0 | 46 | | { |
| | 0 | 47 | | Debug.Assert(typeof(T) == typeof(object)); |
| | 0 | 48 | | derivedTypeInfo.SerializeAsObject(writer, rootValue); |
| | | 49 | | // NB flushing is handled by the derived type's serialization method. |
| | 0 | 50 | | } |
| | | 51 | | else |
| | 0 | 52 | | { |
| | 0 | 53 | | WriteStack state = default; |
| | 0 | 54 | | state.Initialize(this, rootValueBoxed); |
| | | 55 | | |
| | 0 | 56 | | bool success = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state); |
| | 0 | 57 | | Debug.Assert(success); |
| | 0 | 58 | | writer.Flush(); |
| | 0 | 59 | | } |
| | 0 | 60 | | } |
| | | 61 | | |
| | | 62 | | internal Task SerializeAsync(Stream utf8Json, |
| | | 63 | | T? rootValue, |
| | | 64 | | CancellationToken cancellationToken, |
| | | 65 | | object? rootValueBoxed = null) |
| | 0 | 66 | | { |
| | 0 | 67 | | PooledByteBufferWriter writer = new PooledByteBufferWriter(Options.DefaultBufferSize, utf8Json); |
| | | 68 | | // Value chosen as 90% of the default buffer used in PooledByteBufferWriter. |
| | | 69 | | // This is a tradeoff between likelihood of needing to grow the array vs. utilizing most of the buffer |
| | 0 | 70 | | int flushThreshold = (int)(writer.Capacity * JsonSerializer.FlushThreshold); |
| | 0 | 71 | | return SerializeAsync(writer, rootValue, flushThreshold, cancellationToken, rootValueBoxed); |
| | 0 | 72 | | } |
| | | 73 | | |
| | | 74 | | internal Task SerializeAsync(PipeWriter utf8Json, |
| | | 75 | | T? rootValue, |
| | | 76 | | CancellationToken cancellationToken, |
| | | 77 | | object? rootValueBoxed = null) |
| | 0 | 78 | | { |
| | | 79 | | // Value chosen as 90% of 4 buffer segments in Pipes. This is semi-arbitrarily chosen and may be changed in |
| | 0 | 80 | | int flushThreshold = (int)(4 * PipeOptions.Default.MinimumSegmentSize * JsonSerializer.FlushThreshold); |
| | 0 | 81 | | return SerializeAsync(utf8Json, rootValue, flushThreshold, cancellationToken, rootValueBoxed); |
| | 0 | 82 | | } |
| | | 83 | | |
| | | 84 | | // Root serialization method for async streaming serialization. |
| | | 85 | | internal async Task<FlushResult> SerializeAsync( |
| | | 86 | | PipeWriter pipeWriter, |
| | | 87 | | T? rootValue, |
| | | 88 | | int flushThreshold, |
| | | 89 | | CancellationToken cancellationToken, |
| | | 90 | | object? rootValueBoxed = null, |
| | | 91 | | Utf8JsonWriter? jsonLineWriter = null) |
| | 0 | 92 | | { |
| | 0 | 93 | | Debug.Assert(IsConfigured); |
| | 0 | 94 | | Debug.Assert(rootValueBoxed is null || rootValueBoxed is T); |
| | | 95 | | |
| | 0 | 96 | | if (CanUseSerializeHandlerInStreaming) |
| | 0 | 97 | | { |
| | | 98 | | // Short-circuit calls into SerializeHandler, if the `CanUseSerializeHandlerInStreaming` heuristic allow |
| | | 99 | | |
| | 0 | 100 | | Debug.Assert(SerializeHandler is not null); |
| | 0 | 101 | | Debug.Assert(CanUseSerializeHandler); |
| | 0 | 102 | | Debug.Assert(Converter is JsonMetadataServicesConverter<T>); |
| | | 103 | | |
| | 0 | 104 | | Utf8JsonWriter writer = jsonLineWriter ?? Utf8JsonWriterCache.RentWriter(Options, pipeWriter); |
| | | 105 | | |
| | | 106 | | try |
| | 0 | 107 | | { |
| | | 108 | | try |
| | 0 | 109 | | { |
| | 0 | 110 | | SerializeHandler(writer, rootValue!); |
| | 0 | 111 | | writer.Flush(); |
| | 0 | 112 | | if (jsonLineWriter is not null) |
| | 0 | 113 | | { |
| | 0 | 114 | | WriteJsonLineTerminator(pipeWriter); |
| | 0 | 115 | | } |
| | 0 | 116 | | } |
| | | 117 | | finally |
| | 0 | 118 | | { |
| | | 119 | | // Record the serialization size in both successful and failed operations, |
| | | 120 | | // since we want to immediately opt out of the fast path if it exceeds the threshold. |
| | 0 | 121 | | OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted + writer.BytesPending); |
| | | 122 | | |
| | 0 | 123 | | if (jsonLineWriter is null) |
| | 0 | 124 | | { |
| | 0 | 125 | | Utf8JsonWriterCache.ReturnWriter(writer); |
| | 0 | 126 | | } |
| | 0 | 127 | | } |
| | | 128 | | |
| | 0 | 129 | | FlushResult result = await pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); |
| | 0 | 130 | | if (result.IsCanceled) |
| | 0 | 131 | | { |
| | 0 | 132 | | ThrowHelper.ThrowOperationCanceledException_PipeWriteCanceled(); |
| | 0 | 133 | | } |
| | | 134 | | |
| | 0 | 135 | | return result; |
| | | 136 | | } |
| | | 137 | | finally |
| | 0 | 138 | | { |
| | 0 | 139 | | if (jsonLineWriter is null && pipeWriter is PooledByteBufferWriter disposable) |
| | 0 | 140 | | { |
| | 0 | 141 | | disposable.Dispose(); |
| | 0 | 142 | | } |
| | 0 | 143 | | } |
| | | 144 | | } |
| | 0 | 145 | | else if ( |
| | 0 | 146 | | #if NET |
| | 0 | 147 | | !typeof(T).IsValueType && |
| | 0 | 148 | | #endif |
| | 0 | 149 | | Converter.CanBePolymorphic && |
| | 0 | 150 | | rootValue is not null && |
| | 0 | 151 | | Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? derivedTypeInfo)) |
| | 0 | 152 | | { |
| | 0 | 153 | | Debug.Assert(typeof(T) == typeof(object)); |
| | 0 | 154 | | return await derivedTypeInfo.SerializeAsObjectAsync(pipeWriter, rootValue, flushThreshold, cancellationT |
| | | 155 | | } |
| | | 156 | | else |
| | 0 | 157 | | { |
| | | 158 | | bool isFinalBlock; |
| | 0 | 159 | | FlushResult result = default; |
| | 0 | 160 | | WriteStack state = default; |
| | 0 | 161 | | state.Initialize(this, |
| | 0 | 162 | | rootValueBoxed, |
| | 0 | 163 | | supportContinuation: true, |
| | 0 | 164 | | supportAsync: true); |
| | | 165 | | |
| | 0 | 166 | | if (!pipeWriter.CanGetUnflushedBytes) |
| | 0 | 167 | | { |
| | 0 | 168 | | ThrowHelper.ThrowInvalidOperationException_PipeWriterDoesNotImplementUnflushedBytes(pipeWriter); |
| | 0 | 169 | | } |
| | 0 | 170 | | state.PipeWriter = pipeWriter; |
| | 0 | 171 | | state.CancellationToken = cancellationToken; |
| | | 172 | | |
| | 0 | 173 | | Utf8JsonWriter writer = jsonLineWriter ?? new Utf8JsonWriter(pipeWriter, Options.GetWriterOptions()); |
| | | 174 | | |
| | | 175 | | try |
| | 0 | 176 | | { |
| | 0 | 177 | | state.FlushThreshold = flushThreshold; |
| | | 178 | | |
| | | 179 | | do |
| | 0 | 180 | | { |
| | | 181 | | try |
| | 0 | 182 | | { |
| | 0 | 183 | | isFinalBlock = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state); |
| | | 184 | | |
| | 0 | 185 | | if (state.SuppressFlush) |
| | 0 | 186 | | { |
| | 0 | 187 | | Debug.Assert(!isFinalBlock); |
| | 0 | 188 | | Debug.Assert(state.PendingTask is not null); |
| | 0 | 189 | | state.SuppressFlush = false; |
| | 0 | 190 | | } |
| | | 191 | | else |
| | 0 | 192 | | { |
| | 0 | 193 | | writer.Flush(); |
| | 0 | 194 | | if (isFinalBlock && jsonLineWriter is not null) |
| | 0 | 195 | | { |
| | 0 | 196 | | WriteJsonLineTerminator(pipeWriter); |
| | 0 | 197 | | } |
| | | 198 | | |
| | 0 | 199 | | result = await pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); |
| | 0 | 200 | | if (result.IsCanceled || result.IsCompleted) |
| | 0 | 201 | | { |
| | 0 | 202 | | if (result.IsCanceled) |
| | 0 | 203 | | { |
| | 0 | 204 | | ThrowHelper.ThrowOperationCanceledException_PipeWriteCanceled(); |
| | 0 | 205 | | } |
| | | 206 | | |
| | | 207 | | // Pipe is completed, no one is reading so no point in continuing serialization |
| | 0 | 208 | | return result; |
| | | 209 | | } |
| | 0 | 210 | | } |
| | 0 | 211 | | } |
| | | 212 | | finally |
| | 0 | 213 | | { |
| | | 214 | | // Await any pending resumable converter tasks (currently these can only be IAsyncEnumerator |
| | | 215 | | // Note that pending tasks are always awaited, even if an exception has been thrown or the c |
| | 0 | 216 | | if (state.PendingTask is not null) |
| | 0 | 217 | | { |
| | | 218 | | // Exceptions should only be propagated by the resuming converter |
| | | 219 | | #if NET |
| | 0 | 220 | | await state.PendingTask.ConfigureAwait(ConfigureAwaitOptions.SuppressThrowing); |
| | | 221 | | #else |
| | | 222 | | try |
| | | 223 | | { |
| | | 224 | | await state.PendingTask.ConfigureAwait(false); |
| | | 225 | | } |
| | | 226 | | catch { } |
| | | 227 | | #endif |
| | 0 | 228 | | } |
| | 0 | 229 | | } |
| | | 230 | | |
| | 0 | 231 | | } while (!isFinalBlock); |
| | | 232 | | |
| | 0 | 233 | | if (CanUseSerializeHandler) |
| | 0 | 234 | | { |
| | | 235 | | // On successful serialization, record the serialization size |
| | | 236 | | // to determine potential suitability of the type for |
| | | 237 | | // fast-path serialization in streaming methods. |
| | 0 | 238 | | Debug.Assert(writer.BytesPending == 0); |
| | 0 | 239 | | OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted); |
| | 0 | 240 | | } |
| | | 241 | | |
| | 0 | 242 | | return result; |
| | | 243 | | } |
| | 0 | 244 | | catch |
| | 0 | 245 | | { |
| | 0 | 246 | | if (jsonLineWriter is null) |
| | 0 | 247 | | { |
| | | 248 | | // Reset the writer in exception cases as we don't want the writer.Dispose() call to flush any p |
| | 0 | 249 | | writer.Reset(); |
| | 0 | 250 | | writer.Dispose(); |
| | 0 | 251 | | } |
| | | 252 | | |
| | | 253 | | // On exception, walk the WriteStack for any orphaned disposables and try to dispose them. |
| | 0 | 254 | | await state.DisposePendingDisposablesOnExceptionAsync().ConfigureAwait(false); |
| | 0 | 255 | | throw; |
| | | 256 | | } |
| | | 257 | | finally |
| | | 258 | | { |
| | 0 | 259 | | if (jsonLineWriter is null) |
| | | 260 | | { |
| | 0 | 261 | | writer.Dispose(); |
| | 0 | 262 | | if (pipeWriter is PooledByteBufferWriter disposable) |
| | | 263 | | { |
| | 0 | 264 | | disposable.Dispose(); |
| | | 265 | | } |
| | 0 | 266 | | } |
| | 0 | 267 | | } |
| | 0 | 268 | | } |
| | | 269 | | |
| | | 270 | | static void WriteJsonLineTerminator(PipeWriter pipeWriter) |
| | 0 | 271 | | { |
| | | 272 | | // The JSON Lines spec mandates a single line-feed character as the line separator, |
| | | 273 | | // independently of any platform-specific or user-configured newline preference. |
| | 0 | 274 | | Span<byte> destination = pipeWriter.GetSpan(1); |
| | 0 | 275 | | destination[0] = (byte)'\n'; |
| | 0 | 276 | | pipeWriter.Advance(1); |
| | 0 | 277 | | } |
| | 0 | 278 | | } |
| | | 279 | | |
| | | 280 | | // Root serialization method for non-async streaming serialization |
| | | 281 | | internal void Serialize( |
| | | 282 | | Stream utf8Json, |
| | | 283 | | in T? rootValue, |
| | | 284 | | object? rootValueBoxed = null) |
| | 0 | 285 | | { |
| | 0 | 286 | | Debug.Assert(IsConfigured); |
| | 0 | 287 | | Debug.Assert(rootValueBoxed is null || rootValueBoxed is T); |
| | | 288 | | |
| | 0 | 289 | | if (CanUseSerializeHandlerInStreaming) |
| | 0 | 290 | | { |
| | | 291 | | // Short-circuit calls into SerializeHandler, if the `CanUseSerializeHandlerInStreaming` heuristic allow |
| | | 292 | | |
| | 0 | 293 | | Debug.Assert(SerializeHandler is not null); |
| | 0 | 294 | | Debug.Assert(CanUseSerializeHandler); |
| | 0 | 295 | | Debug.Assert(Converter is JsonMetadataServicesConverter<T>); |
| | | 296 | | |
| | 0 | 297 | | Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(Options, out PooledByteBufferWriter buff |
| | | 298 | | try |
| | 0 | 299 | | { |
| | 0 | 300 | | SerializeHandler(writer, rootValue!); |
| | 0 | 301 | | writer.Flush(); |
| | 0 | 302 | | bufferWriter.WriteToStream(utf8Json); |
| | 0 | 303 | | } |
| | | 304 | | finally |
| | 0 | 305 | | { |
| | | 306 | | // Record the serialization size in both successful and failed operations, |
| | | 307 | | // since we want to immediately opt out of the fast path if it exceeds the threshold. |
| | 0 | 308 | | OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted + writer.BytesPending); |
| | | 309 | | |
| | 0 | 310 | | Utf8JsonWriterCache.ReturnWriterAndBuffer(writer, bufferWriter); |
| | 0 | 311 | | } |
| | 0 | 312 | | } |
| | 0 | 313 | | else if ( |
| | 0 | 314 | | #if NET |
| | 0 | 315 | | !typeof(T).IsValueType && |
| | 0 | 316 | | #endif |
| | 0 | 317 | | Converter.CanBePolymorphic && |
| | 0 | 318 | | rootValue is not null && |
| | 0 | 319 | | Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? polymorphicTypeInfo)) |
| | 0 | 320 | | { |
| | 0 | 321 | | Debug.Assert(typeof(T) == typeof(object)); |
| | 0 | 322 | | polymorphicTypeInfo.SerializeAsObject(utf8Json, rootValue); |
| | 0 | 323 | | } |
| | | 324 | | else |
| | 0 | 325 | | { |
| | | 326 | | bool isFinalBlock; |
| | 0 | 327 | | WriteStack state = default; |
| | 0 | 328 | | state.Initialize(this, |
| | 0 | 329 | | rootValueBoxed, |
| | 0 | 330 | | supportContinuation: true, |
| | 0 | 331 | | supportAsync: false); |
| | | 332 | | |
| | 0 | 333 | | Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(Options, out PooledByteBufferWriter buff |
| | 0 | 334 | | Debug.Assert(bufferWriter.CanGetUnflushedBytes); |
| | | 335 | | |
| | | 336 | | try |
| | 0 | 337 | | { |
| | 0 | 338 | | state.PipeWriter = bufferWriter; |
| | 0 | 339 | | state.FlushThreshold = (int)(bufferWriter.Capacity * JsonSerializer.FlushThreshold); |
| | | 340 | | |
| | | 341 | | do |
| | 0 | 342 | | { |
| | 0 | 343 | | isFinalBlock = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state); |
| | 0 | 344 | | writer.Flush(); |
| | | 345 | | |
| | 0 | 346 | | bufferWriter.WriteToStream(utf8Json); |
| | 0 | 347 | | bufferWriter.Clear(); |
| | | 348 | | |
| | 0 | 349 | | Debug.Assert(state.PendingTask is null); |
| | 0 | 350 | | } while (!isFinalBlock); |
| | | 351 | | |
| | 0 | 352 | | if (CanUseSerializeHandler) |
| | 0 | 353 | | { |
| | | 354 | | // On successful serialization, record the serialization size |
| | | 355 | | // to determine potential suitability of the type for |
| | | 356 | | // fast-path serialization in streaming methods. |
| | 0 | 357 | | Debug.Assert(writer.BytesPending == 0); |
| | 0 | 358 | | OnRootLevelAsyncSerializationCompleted(writer.BytesCommitted); |
| | 0 | 359 | | } |
| | 0 | 360 | | } |
| | | 361 | | finally |
| | 0 | 362 | | { |
| | 0 | 363 | | Utf8JsonWriterCache.ReturnWriterAndBuffer(writer, bufferWriter); |
| | 0 | 364 | | } |
| | 0 | 365 | | } |
| | 0 | 366 | | } |
| | | 367 | | |
| | | 368 | | internal sealed override void SerializeAsObject(Utf8JsonWriter writer, object? rootValue) |
| | 0 | 369 | | => Serialize(writer, JsonSerializer.UnboxOnWrite<T>(rootValue), rootValue); |
| | | 370 | | |
| | | 371 | | internal sealed override Task<FlushResult> SerializeAsObjectAsync(PipeWriter pipeWriter, object? rootValue, int |
| | 0 | 372 | | => SerializeAsync(pipeWriter, JsonSerializer.UnboxOnWrite<T>(rootValue), flushThreshold, cancellationToken, |
| | | 373 | | |
| | | 374 | | internal sealed override Task SerializeAsObjectAsync(Stream utf8Json, object? rootValue, CancellationToken cance |
| | 0 | 375 | | => SerializeAsync(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), cancellationToken, rootValue); |
| | | 376 | | |
| | | 377 | | internal sealed override Task SerializeAsObjectAsync(PipeWriter utf8Json, object? rootValue, CancellationToken c |
| | 0 | 378 | | => SerializeAsync(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), cancellationToken, rootValue); |
| | | 379 | | |
| | | 380 | | internal sealed override void SerializeAsObject(Stream utf8Json, object? rootValue) |
| | 0 | 381 | | => Serialize(utf8Json, JsonSerializer.UnboxOnWrite<T>(rootValue), rootValue); |
| | | 382 | | |
| | | 383 | | // Fast-path serialization in source gen has not been designed with streaming in mind. |
| | | 384 | | // Even though it's not used in streaming by default, we can sometimes try to turn it on |
| | | 385 | | // assuming that the current type is known to produce small enough JSON payloads. |
| | | 386 | | // The `CanUseSerializeHandlerInStreaming` flag returns true iff: |
| | | 387 | | // * The type has been used in at least `MinSerializationsSampleSize` streaming serializations AND |
| | | 388 | | // * No serialization size exceeding JsonSerializerOptions.DefaultBufferSize / 2 has been recorded so far. |
| | 0 | 389 | | private bool CanUseSerializeHandlerInStreaming => _canUseSerializeHandlerInStreamingState == 1; |
| | | 390 | | private volatile int _canUseSerializeHandlerInStreamingState; // 0: unspecified, 1: allowed, 2: forbidden |
| | | 391 | | |
| | | 392 | | private const int MinSerializationsSampleSize = 10; |
| | | 393 | | private volatile int _serializationCount; |
| | | 394 | | |
| | | 395 | | // Samples the latest serialization size for the current type to determine |
| | | 396 | | // if the fast-path SerializeHandler is appropriate for streaming serialization. |
| | | 397 | | private void OnRootLevelAsyncSerializationCompleted(long serializationSize) |
| | 0 | 398 | | { |
| | 0 | 399 | | Debug.Assert(CanUseSerializeHandler); |
| | | 400 | | |
| | 0 | 401 | | if (_canUseSerializeHandlerInStreamingState != 2) |
| | 0 | 402 | | { |
| | 0 | 403 | | if ((ulong)serializationSize > (ulong)(Options.DefaultBufferSize / 2)) |
| | 0 | 404 | | { |
| | | 405 | | // We have a serialization that exceeds the buffer size -- |
| | | 406 | | // forbid any use future use of the fast-path handler. |
| | 0 | 407 | | _canUseSerializeHandlerInStreamingState = 2; |
| | 0 | 408 | | } |
| | 0 | 409 | | else if ((uint)_serializationCount < MinSerializationsSampleSize) |
| | 0 | 410 | | { |
| | 0 | 411 | | if (Interlocked.Increment(ref _serializationCount) == MinSerializationsSampleSize) |
| | 0 | 412 | | { |
| | | 413 | | // We have the minimum number of serializations needed to flag the type as safe for fast-path. |
| | | 414 | | // Use CMPXCHG to avoid racing with threads reporting a large serialization. |
| | 0 | 415 | | Interlocked.CompareExchange(ref _canUseSerializeHandlerInStreamingState, 1, 0); |
| | 0 | 416 | | } |
| | 0 | 417 | | } |
| | 0 | 418 | | } |
| | 0 | 419 | | } |
| | | 420 | | } |
| | | 421 | | } |
| | | 422 | | |