JASSv2
Classes | Functions
slice.h File Reference

Slices (also known as string-descriptors) for C++. More...

#include <string.h>
#include <iostream>
#include "asserts.h"
#include "allocator_pool.h"
Include dependency graph for slice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  JASS::slice
 C++ slices (string-descriptors) More...
 

Functions

std::ostream & JASS::operator<< (std::ostream &stream, const slice &data)
 Dump the contents of a slice (as binary data) down an output stream. More...
 

Detailed Description

Slices (also known as string-descriptors) for C++.

Author
Andrew Trotman

Function Documentation

◆ operator<<()

std::ostream& JASS::operator<< ( std::ostream &  stream,
const slice data 
)
inline

Dump the contents of a slice (as binary data) down an output stream.

Parameters
stream[in] The stream to write to.
data[in] The slice to write.
Returns
The stream once the slice has been written.