tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

sbuf.cpp File Reference
#include "config.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include "bulk_extractor_i.h"
#include "unicode_escape.h"
Include dependency graph for sbuf.cpp:

Go to the source code of this file.


#define O_BINARY   0
#define NSRL_HEXBUF_SPACE2   0x02
#define NSRL_HEXBUF_SPACE4   0x04


static std::string hexch (unsigned char ch)
static const char * hexbuf (char *dst, int dst_len, const unsigned char *bin, int bytes, int flag)
std::ostream & operator<< (std::ostream &os, const sbuf_t &t)


static int hexcharvals [256] = {-1,0}

Macro Definition Documentation


#define NSRL_HEXBUF_SPACE2   0x02

Definition at line 200 of file sbuf.cpp.


#define NSRL_HEXBUF_SPACE4   0x04

Definition at line 201 of file sbuf.cpp.



Convert a binary blob to a hex representation

Definition at line 199 of file sbuf.cpp.


#define O_BINARY   0


Definition at line 14 of file sbuf.cpp.

Function Documentation

◆ hexbuf()

static const char* hexbuf ( char *  dst,
int  dst_len,
const unsigned char *  bin,
int  bytes,
int  flag 

◆ hexch()

static std::string hexch ( unsigned char  ch)

Definition at line 111 of file sbuf.cpp.

Referenced by sbuf_t::hex_dump().

Variable Documentation

◆ hexcharvals

int hexcharvals[256] = {-1,0}

Definition at line 205 of file sbuf.cpp.

Referenced by hexbuf().