ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcppDiskMem.c File Reference
#include <ngc/core/ngcpp.h>

Macros

#define _LARGEFILE64_SOURCE
 
#define ngcpp64BIT   (sizeof(void *) >= 8)
 

Functions

void * ngcppBurstAlloc (size_t size)
 
void ngcppBurstFree (void *buffer, size_t size)
 
void * ngcppAttachBuf (void *buffer, off_t offset, size_t size, size_t *mapSize)
 
void ngcppDetachBuf (void *buffer, size_t size)
 

Variables

int ngcppDiskMem = 0
 
int ngcppDiskMemIdx = 1
 
char ngcppDiskMemPath [256]
 

Detailed Description

Macro Definition Documentation

◆ _LARGEFILE64_SOURCE

#define _LARGEFILE64_SOURCE

◆ ngcpp64BIT

#define ngcpp64BIT   (sizeof(void *) >= 8)

Function Documentation

◆ ngcppAttachBuf()

void * ngcppAttachBuf ( void * buffer,
off_t offset,
size_t size,
size_t * mapSize )

Attach to buffer.

◆ ngcppBurstAlloc()

void * ngcppBurstAlloc ( size_t size)

Return a pointer to the allocated buffer. In case of failure a NULL-pointer is returned.

◆ ngcppBurstFree()

void ngcppBurstFree ( void * buffer,
size_t size )

Free the memory allocated with ngcppBurstAlloc().

◆ ngcppDetachBuf()

void ngcppDetachBuf ( void * buffer,
size_t size )

Detach from buffer.

Variable Documentation

◆ ngcppDiskMem

int ngcppDiskMem = 0

Disk memory extension flag

◆ ngcppDiskMemIdx

int ngcppDiskMemIdx = 1

Disk memory index

◆ ngcppDiskMemPath

char ngcppDiskMemPath[256]

disk memory path