jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Macros | Functions
byte_stream.cpp File Reference
#include <chrono>
#include <jau/debug.hpp>
#include <jau/byte_stream.hpp>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <thread>
#include <pthread.h>
Include dependency graph for byte_stream.cpp:

Go to the source code of this file.

Macros

#define __posix_lseek64   ::lseek64
 
#define __posix_openat64   ::openat64
 
#define APPEND_BITSTR(U, V, W, M)   append_bitstr(out, M, U::V, #W, comma);
 
#define IOSTATE_ENUM(X, M)
 
#define O_BINARY   0
 
#define O_NONBLOCK   0
 

Functions

template<typename T >
static void append_bitstr (std::string &out, T mask, T bit, const std::string &bitstr, bool &comma)
 
constexpr void copy_mem (void *out, const void *in, size_t n) noexcept
 

Macro Definition Documentation

◆ O_BINARY

#define O_BINARY   0

Definition at line 51 of file byte_stream.cpp.

◆ O_NONBLOCK

#define O_NONBLOCK   0

Definition at line 54 of file byte_stream.cpp.

◆ __posix_openat64

#define __posix_openat64   ::openat64

Definition at line 66 of file byte_stream.cpp.

◆ __posix_lseek64

#define __posix_lseek64   ::lseek64

Definition at line 67 of file byte_stream.cpp.

◆ APPEND_BITSTR

#define APPEND_BITSTR (   U,
  V,
  W,
 
)    append_bitstr(out, M, U::V, #W, comma);

Definition at line 162 of file byte_stream.cpp.

◆ IOSTATE_ENUM

#define IOSTATE_ENUM (   X,
 
)
Value:
X(iostate,badbit,bad,M) \
X(iostate,eofbit,eof,M) \
X(iostate,failbit,fail,M) \
X(iostate,timeout,timeout,M)
iostate
Mimic std::ios_base::iostate for state functionality, see iostate_func.
Definition: byte_stream.hpp:53

Definition at line 164 of file byte_stream.cpp.

Function Documentation

◆ copy_mem()

constexpr void copy_mem ( void *  out,
const void *  in,
size_t  n 
)
inlineconstexprnoexcept

Definition at line 76 of file byte_stream.cpp.

Here is the caller graph for this function:

◆ append_bitstr()

template<typename T >
static void append_bitstr ( std::string &  out,
mask,
bit,
const std::string &  bitstr,
bool &  comma 
)
static

Definition at line 155 of file byte_stream.cpp.