Skip to content

libsugar/BetterCollections

Repository files navigation

BetterCollections

.NET Nuget MIT ApiDoc

WIP

  • All containers optionally use ArrayPool
  • Buffers
    • DirectAllocationArrayPool<T>
      Pretend to have pooling
    • ArrayPoolFactory
      Factory abstraction provides array pool implementation
  • Not Sync / Non Concurrent / No Thread Safe
    • Vec<T>
      Reimplemented List<T>, can unsafely retrieve the internal Array or as Span, Memory todo methods same to List<T>
  • Sync / Concurrent / Thread safe
    • OnceInit<T>
      Similar to Lazy<T>, but provides init function when getting
      Inspired by rust OnceCell<T>
  • Memories
    • Box<T> ReadOnlyBox<T>
      Simply wrap a value onto the heap
    • ArrayRef<T> ReadOnlyArrayRef<T>
      A fat reference (T[] + offset) that can be safely put on the heap, not a ref struct
    • MemoryRef<T> ReadOnlyMemoryRef<T>
      A fat reference (Memory<T> + offset) that can be safely put on the heap, not a ref struct
    • OffsetRef<T> ReadOnlyOffsetRef<T>
      A fat reference (object + offset) that can be safely put on the heap, not a ref struct
    • MemoryEx
      • Provides GetEnumerator for Memory<T> ReadOnlyMemory<T>
  • Cryptography

About

Some better collection implementations than the system library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy