Spicy
Classes | Typedefs | Functions
hilti::rt::stream::detail Namespace Reference

Classes

class  Chain
 
class  Chunk
 
struct  Gap
 
class  UnsafeConstIterator
 

Typedefs

using ChainPtr = IntrusivePtr< Chain >
 
using ConstChainPtr = IntrusivePtr< const Chain >
 

Functions

std::ostream & operator<< (std::ostream &out, const UnsafeConstIterator &x)
 
template<int N>
UnsafeConstIterator _extract (Byte *dst, const UnsafeConstIterator &i)
 
template<>
UnsafeConstIterator _extract< 0 > (Byte *, const UnsafeConstIterator &i)
 
template<int N>
UnsafeConstIterator extract (Byte *dst, const UnsafeConstIterator &i, const UnsafeConstIterator &end)
 

Detailed Description

Standard, unsafe iterator for internal usage. Unlike SafeConstIterator, this iterator version is not safe against the underlying stream instances disappearing or even changing; it will not catch that and likely causes crashes on access It also does not perform any bounds-checking. When using this, one hence needs to ensure that the stream instance will remain valid & unchanged for long as the iterator remains alive. In return, this iterator is more efficient than the SafeConstIterator.