|
Enhanced C#
Loyc library documentation
|
Public fields | |
| InternalList< T > | _list |
| Memory< T > | List => _list.AsMemory() |
|
ReadOnlyMemory< T > IListBuilder< ReadOnlyMemory < T >, T >. | List => _list.AsMemory() |
| Memory< T > | Empty => default |
|
ReadOnlyMemory< T > IListBuilder< ReadOnlyMemory < T >, T >. | Empty => default |
Public Member Functions | |
| object | Alloc (int minLength) |
| A method that is always called once when loading a list. More... | |
| Memory< T > | CastList (object value) |
| When the list being loaded was already read from the data stream earlier, this property is called to convert that existing object to the target list type, skipping the usual calls to Alloc(), Add(T) and List. More... | |
| ReadOnlyMemory< T > IListBuilder< ReadOnlyMemory < T >, T >. | CastList (object value) |
| When the list being loaded was already read from the data stream earlier, this property is called to convert that existing object to the target list type, skipping the usual calls to Alloc(), Add(T) and List. More... | |
| void | Add (T item) |
| void | AddRange (ReadOnlySpan< T > items) |
| Adds several items at once (equivalent to calling Add() on each). More... | |
Additional Inherited Members | |
Properties inherited from Loyc.SyncLib.Impl.IListBuilder< out TList, T > | |
| TList | List [get] |
| Called once when done loading to retrieve the list. More... | |
| TList | Empty [get] |
| Returns an empty list, bypassing the normal building process More... | |
| void Loyc.SyncLib.Impl.MemoryBuilder< T >.AddRange | ( | ReadOnlySpan< T > | items | ) |
Adds several items at once (equivalent to calling Add() on each).
Implements Loyc.SyncLib.Impl.IListBuilder< out TList, T >.
|
inline |
A method that is always called once when loading a list.
| minLength | Minimum list size (ISyncManager.MinimumListLength) |
Implements Loyc.SyncLib.Impl.IListBuilder< out TList, T >.
|
inline |
When the list being loaded was already read from the data stream earlier, this property is called to convert that existing object to the target list type, skipping the usual calls to Alloc(), Add(T) and List.
Implements Loyc.SyncLib.Impl.IListBuilder< out TList, T >.
|
inline |
When the list being loaded was already read from the data stream earlier, this property is called to convert that existing object to the target list type, skipping the usual calls to Alloc(), Add(T) and List.
Implements Loyc.SyncLib.Impl.IListBuilder< out TList, T >.
1.8.7