Blender  V3.3
Functions | Variables
Stream.cpp File Reference
#include <Stream.h>
#include <cstdio>
#include <cstring>

Go to the source code of this file.

Functions

bool is_read_within_bounds (const Stream &mem, unsigned int count)
 
unsigned int mem_read (Stream &mem, unsigned long long &i)
 
unsigned int mem_read (Stream &mem, unsigned int &i)
 
unsigned int mem_read (Stream &mem, unsigned short &i)
 
unsigned int mem_read (Stream &mem, unsigned char &i)
 
unsigned int mem_read (Stream &mem, unsigned char *i, unsigned int count)
 

Variables

static const char * msg_error_seek = "DDS: trying to seek beyond end of stream (corrupt file?)"
 
static const char * msg_error_read = "DDS: trying to read beyond end of stream (corrupt file?)"
 

Function Documentation

◆ is_read_within_bounds()

bool is_read_within_bounds ( const Stream mem,
unsigned int  count 
)
inline

Definition at line 15 of file Stream.cpp.

References count, Stream::pos, and Stream::size.

Referenced by mem_read().

◆ mem_read() [1/5]

unsigned int mem_read ( Stream mem,
unsigned char &  i 
)

◆ mem_read() [2/5]

unsigned int mem_read ( Stream mem,
unsigned char *  i,
unsigned int  count 
)

◆ mem_read() [3/5]

unsigned int mem_read ( Stream mem,
unsigned int &  i 
)

◆ mem_read() [4/5]

unsigned int mem_read ( Stream mem,
unsigned long long &  i 
)

◆ mem_read() [5/5]

unsigned int mem_read ( Stream mem,
unsigned short &  i 
)

Variable Documentation

◆ msg_error_read

const char* msg_error_read = "DDS: trying to read beyond end of stream (corrupt file?)"
static

Definition at line 13 of file Stream.cpp.

Referenced by mem_read().

◆ msg_error_seek

const char* msg_error_seek = "DDS: trying to seek beyond end of stream (corrupt file?)"
static

Definition at line 12 of file Stream.cpp.

Referenced by mem_read(), and Stream::seek().