Bsoft 2.1.4
Bernard's software package
bfile.cpp File Reference

Program to read file contents directly and poke single values. More...

#include "options.h"
#include "utilities.h"
#include <fstream>

Functions

int show_block (size_t start, size_t size, unsigned char *buf)
 
int show_block_hex (size_t start, size_t size, unsigned char *buf)
 
int show_char (size_t start, size_t size, unsigned char *buf)
 
int swap_block (size_t size, size_t nbytes, unsigned char *buf)
 
int show_table (size_t start, size_t size, unsigned char *buf)
 
int show_structure (size_t start, size_t size, int swap, char *strdef, unsigned char *buf)
 
int show_eer (size_t start, size_t size, unsigned char *buf)
 
int poke_value (fstream *fin, size_t loc, char typechar, double value)
 
int find_string (const char *string, size_t start, size_t size, unsigned char *buf)
 
int replace (fstream *fin, char *rstring1, char *rstring2)
 
char * string2byte (char *string)
 
size_t string_bytes (char *string)
 
int main (int argc, char **argv)
 
int show_bits (unsigned long val)
 
int show_code (unsigned long code)
 
int shift_right (unsigned long &bits, long n)
 

Variables

int verbose
 
const char * use []
 

Detailed Description

Program to read file contents directly and poke single values.

Author
Bernard Heymann
Date
Created: 19980129
Modified: 20210430

Function Documentation

◆ find_string()

int find_string ( const char *  string,
size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ poke_value()

int poke_value ( fstream *  fin,
size_t  loc,
char  typechar,
double  value 
)

◆ replace()

int replace ( fstream *  fin,
char *  rstring1,
char *  rstring2 
)

◆ shift_right()

int shift_right ( unsigned long &  bits,
long  n 
)

◆ show_bits()

int show_bits ( unsigned long  val)

◆ show_block()

int show_block ( size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ show_block_hex()

int show_block_hex ( size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ show_char()

int show_char ( size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ show_code()

int show_code ( unsigned long  code)

◆ show_eer()

int show_eer ( size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ show_structure()

int show_structure ( size_t  start,
size_t  size,
int  swap,
char *  strdef,
unsigned char *  buf 
)

◆ show_table()

int show_table ( size_t  start,
size_t  size,
unsigned char *  buf 
)

◆ string2byte()

char * string2byte ( char *  string)

◆ string_bytes()

size_t string_bytes ( char *  string)

◆ swap_block()

int swap_block ( size_t  size,
size_t  nbytes,
unsigned char *  buf 
)

Variable Documentation

◆ use

const char* use[]

◆ verbose

int verbose
extern