GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
c-file-ptr-stream.cc File Reference
#include <iomanip>
#include "filepos-wrappers.h"
#include "c-file-ptr-stream.h"
Include dependency graph for c-file-ptr-stream.cc:

Go to the source code of this file.

Macros

#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 

Functions

static int seekdir_to_whence (std::ios::seekdir dir)
 

Macro Definition Documentation

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 41 of file c-file-ptr-stream.cc.

◆ SEEK_END

#define SEEK_END   2

Definition at line 45 of file c-file-ptr-stream.cc.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 37 of file c-file-ptr-stream.cc.

Function Documentation

◆ seekdir_to_whence()

static int seekdir_to_whence ( std::ios::seekdir  dir)
inlinestatic

Definition at line 106 of file c-file-ptr-stream.cc.

References SEEK_CUR, SEEK_END, and SEEK_SET.

Referenced by c_file_ptr_buf::seekoff(), and c_zfile_ptr_buf::seekoff().