FFmpegfs Fuse Multi Media Filesystem 2.16
Classes | Macros
buffer.h File Reference

Buffer class. More...

#include "fileio.h"
#include <mutex>
#include <vector>
#include <stddef.h>
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Buffer
 The Buffer class. More...
 
struct  Buffer::_tagCACHEINFO
 Structure to hold current cache state. More...
 

Macros

#define CACHE_CHECK_BIT(mask, var)   ((mask) == (mask & (var)))
 Check bit in bitmask. More...
 
#define CACHE_CLOSE_NOOPT   0x00000000
 Dummy, do nothing special. More...
 
#define CACHE_CLOSE_FREE   0x00000001
 Free memory for cache entry. More...
 
#define CACHE_CLOSE_DELETE   (0x00000002 | CACHE_CLOSE_FREE)
 Delete cache entry, will unlink cached file! Implies CACHE_CLOSE_FREE. More...
 
#define CACHE_FLAG_RO   0x00000001
 Mark cache file read-only. More...
 
#define CACHE_FLAG_RW   0x00000002
 Mark cache file writeable, implies read permissions. More...
 

Detailed Description

Buffer class.

Author
Norbert Schlia (nschl.nosp@m.ia@o.nosp@m.blivi.nosp@m.on-s.nosp@m.oftwa.nosp@m.re.d.nosp@m.e)

Definition in file buffer.h.

Macro Definition Documentation

◆ CACHE_CHECK_BIT

#define CACHE_CHECK_BIT (   mask,
  var 
)    ((mask) == (mask & (var)))

Check bit in bitmask.

Definition at line 43 of file buffer.h.

◆ CACHE_CLOSE_DELETE

#define CACHE_CLOSE_DELETE   (0x00000002 | CACHE_CLOSE_FREE)

Delete cache entry, will unlink cached file! Implies CACHE_CLOSE_FREE.

Definition at line 47 of file buffer.h.

◆ CACHE_CLOSE_FREE

#define CACHE_CLOSE_FREE   0x00000001

Free memory for cache entry.

Definition at line 46 of file buffer.h.

◆ CACHE_CLOSE_NOOPT

#define CACHE_CLOSE_NOOPT   0x00000000

Dummy, do nothing special.

Definition at line 45 of file buffer.h.

◆ CACHE_FLAG_RO

#define CACHE_FLAG_RO   0x00000001

Mark cache file read-only.

Definition at line 49 of file buffer.h.

◆ CACHE_FLAG_RW

#define CACHE_FLAG_RW   0x00000002

Mark cache file writeable, implies read permissions.

Definition at line 50 of file buffer.h.