MCPcopy Create free account
hub / github.com/apache/fory / ReadData

Method ReadData

csharp/src/Fory/CollectionSerializers.cs:619–629  ·  view source on GitHub ↗
(ReadContext context)

Source from the content-addressed store, hash-verified

617 }
618
619 public override Queue<T> ReadData(ReadContext context)
620 {
621 List<T> values = CollectionCodec.ReadCollectionData(context.TypeResolver.GetSerializer<T>(), context);
622 Queue<T> queue = new(values.Count);
623 for (int i = 0; i < values.Count; i++)
624 {
625 queue.Enqueue(values[i]);
626 }
627
628 return queue;
629 }
630}
631
632public sealed class StackSerializer<T> : Serializer<Stack<T>>

Callers

nothing calls this directly

Calls 1

ReadCollectionDataMethod · 0.80

Tested by

no test coverage detected