Abstract
This chapter is somehow a continuation of the previous one, describing more advanced techniques that are available in .NET. Thus, please note that the knowledge from the previous chapter is really helpful to understand this one (especially regarding ref types, ref returns, and ref structs).
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
Originally, this type was even supposed to be called Slice, not Span.
- 2.
Although specific Stream implementation may implement its buffering and flushing mechanisms, this is used for example purposes. In fact, such design is used in classes like FileStream where stream is replaced by native OS calls.
- 3.
Unless we have passed an unmanaged address, see ReturnNativeAsSpan method in Listing 14-5.
- 4.
But taking Domain Driven Design into consideration, it would be probably even more complex, with separate types to represent money or other data.
- 5.
Avalon is a codename for WPF engine.
- 6.
Please note that triviality of presented processing is for brevity, but it does not change the overall presented approach.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Konrad Kokosa
About this chapter
Cite this chapter
Kokosa, K. (2018). Advanced Techniques. In: Pro .NET Memory Management. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4027-4_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4027-4_14
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4026-7
Online ISBN: 978-1-4842-4027-4
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)