Guided course · .NET Runtime, Memory and Performance
C# Memory for Interviews: Spans and Pooled Buffers
- Parse and write data with spans and buffers.
- Manage pooled memory and ownership across async boundaries.
- Understand ref struct rules and low-level fast-path risks.
- Measure allocations before claiming an improvement.
Advanced3 modules · 12 lessons · 2 h 56 min · 3 practice tests · 2 free
Module 1 · Memory and ownership in modern C#
2 lessons · 17 minModule 2 · Buffers, Spans and Zero-Copy I/O
9 lessons · 2 h 4 min- 03stackalloc Safely: Size Thresholds and Pooled Fallbacks (included with Full Access)14 min
- 04Memory<T> Across await, and IMemoryOwner<T> Ownership (included with Full Access)14 min
- 05IBufferWriter<T>: Writing UTF-8 Output Without Intermediate Strings (included with Full Access)14 min
- 06Parsing UTF-8 Bytes Directly: u8 Literals, Utf8Parser and IUtf8SpanParsable (included with Full Access)13 min
- 07string.Create, SearchValues and Span Splitting (included with Full Access)13 min
- 08System.IO.Pipelines: Framing Messages Split Across Reads (included with Full Access)16 min
- 09Measuring Allocations Honestly (included with Full Access)13 min
- 10CollectionsMarshal and MemoryMarshal: Fast Paths and Their Traps (included with Full Access)13 min
- 11ref struct Rules: scoped, ref Fields and allows ref struct (included with Full Access)14 min
Module 3 · Practice and Assessment
1 lesson · 35 minPractice tests
TechInterviewNotes Editorial Team ·