libsqsh v1.5.2
Loading...
Searching...
No Matches
sqsh_mapper.h File Reference
#include <sqsh_common.h>
#include <stddef.h>
Include dependency graph for sqsh_mapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SqshMemoryMapperImpl
 The implementation of a memory mapper. More...
 

Functions

size_t sqsh_mapper_size (const struct SqshMapper *mapper)
 
uint64_t sqsh_mapper_size2 (const struct SqshMapper *mapper)
 
size_t sqsh_mapper_block_size (const struct SqshMapper *mapper)
 

Variables

const struct SqshMemoryMapperImpl *const sqsh_mapper_impl_curl
 a mapper that uses curl to download the file.
 
const struct SqshMemoryMapperImpl *const sqsh_mapper_impl_mmap
 a mapper that uses mmap to map the file into memory.
 
const struct SqshMemoryMapperImpl *const sqsh_mapper_impl_static
 a mapper that uses a static buffer.
 

Detailed Description

Author
Enno Boland (mail@.nosp@m.ebol.nosp@m.and.d.nosp@m.e)

Definition in file sqsh_mapper.h.

Function Documentation

◆ sqsh_mapper_block_size()

size_t sqsh_mapper_block_size ( const struct SqshMapper * mapper)

◆ sqsh_mapper_size()

size_t sqsh_mapper_size ( const struct SqshMapper * mapper)
Deprecated
Since 1.5.0. Use sqsh_mapper_size2() instead.

◆ sqsh_mapper_size2()

uint64_t sqsh_mapper_size2 ( const struct SqshMapper * mapper)

Variable Documentation

◆ sqsh_mapper_impl_curl

const struct SqshMemoryMapperImpl* const sqsh_mapper_impl_curl
extern

a mapper that uses curl to download the file.

◆ sqsh_mapper_impl_mmap

const struct SqshMemoryMapperImpl* const sqsh_mapper_impl_mmap
extern

a mapper that uses mmap to map the file into memory.

◆ sqsh_mapper_impl_static

const struct SqshMemoryMapperImpl* const sqsh_mapper_impl_static
extern

a mapper that uses a static buffer.