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

Go to the source code of this file.

Data Structures

struct  SqshMapper
 The mapper that is used to map chunks of the archive into memory. More...
 
struct  SqshMapSlice
 Represents a view into the data of an archive. More...
 
struct  SqshMapManager
 The map manager. More...
 
struct  SqshMapIterator
 
struct  SqshMapReader
 A reader over a mapping of data. More...
 

Functions

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__mapper_init (struct SqshMapper *mapper, const void *source, const struct SqshConfig *config)
 
SQSH_NO_EXPORT int sqsh__mapper_cleanup (struct SqshMapper *mapper)
 
SQSH_NO_EXPORT const uint8_t * sqsh__map_slice_data (const struct SqshMapSlice *mapping)
 
SQSH_NO_EXPORT size_t sqsh__map_slice_size (const struct SqshMapSlice *mapping)
 
SQSH_NO_EXPORT int sqsh__map_slice_cleanup (struct SqshMapSlice *mapping)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_slice_init (struct SqshMapSlice *mapping, struct SqshMapper *mapper, uint64_t address, uint64_t offset, size_t size)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_manager_init (struct SqshMapManager *manager, const void *input, const struct SqshConfig *config)
 
SQSH_NO_EXPORT uint64_t sqsh__map_manager_size (const struct SqshMapManager *manager)
 
SQSH_NO_EXPORT size_t sqsh__map_manager_block_size (const struct SqshMapManager *manager)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_manager_get (struct SqshMapManager *manager, sqsh_index_t index, const struct SqshMapSlice **target)
 
SQSH_NO_EXPORT int sqsh__map_manager_release (struct SqshMapManager *manager, const struct SqshMapSlice *mapping)
 
SQSH_NO_EXPORT int sqsh__map_manager_cleanup (struct SqshMapManager *manager)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_iterator_init (struct SqshMapIterator *iterator, struct SqshMapManager *manager, uint64_t address)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED bool sqsh__map_iterator_next (struct SqshMapIterator *iterator, int *err)
 
SQSH_NO_EXPORT const uint8_t * sqsh__map_iterator_data (const struct SqshMapIterator *iterator)
 
SQSH_NO_EXPORT size_t sqsh__map_iterator_block_size (const struct SqshMapIterator *iterator)
 
SQSH_NO_EXPORT size_t sqsh__map_iterator_size (const struct SqshMapIterator *iterator)
 
SQSH_NO_EXPORT int sqsh__map_iterator_cleanup (struct SqshMapIterator *iterator)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_init (struct SqshMapReader *reader, struct SqshMapManager *mapper, const uint64_t start_address, uint64_t upper_limit)
 
SQSH_NO_EXPORT size_t sqsh__map_reader_remaining_direct (const struct SqshMapReader *reader)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED uint64_t sqsh__map_reader_address (const struct SqshMapReader *reader)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_advance (struct SqshMapReader *reader, uint64_t offset, size_t size)
 
SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_all (struct SqshMapReader *reader)
 
SQSH_NO_EXPORT const uint8_t * sqsh__map_reader_data (const struct SqshMapReader *reader)
 
SQSH_NO_EXPORT size_t sqsh__map_reader_size (const struct SqshMapReader *reader)
 
SQSH_NO_EXPORT int sqsh__map_reader_cleanup (struct SqshMapReader *reader)
 

Detailed Description

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

Definition in file sqsh_mapper_private.h.

Function Documentation

◆ sqsh__map_iterator_block_size()

SQSH_NO_EXPORT size_t sqsh__map_iterator_block_size ( const struct SqshMapIterator * iterator)

◆ sqsh__map_iterator_cleanup()

SQSH_NO_EXPORT int sqsh__map_iterator_cleanup ( struct SqshMapIterator * iterator)

◆ sqsh__map_iterator_data()

SQSH_NO_EXPORT const uint8_t * sqsh__map_iterator_data ( const struct SqshMapIterator * iterator)

◆ sqsh__map_iterator_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_iterator_init ( struct SqshMapIterator * iterator,
struct SqshMapManager * manager,
uint64_t address )

◆ sqsh__map_iterator_next()

SQSH_NO_EXPORT SQSH_NO_UNUSED bool sqsh__map_iterator_next ( struct SqshMapIterator * iterator,
int * err )

◆ sqsh__map_iterator_size()

SQSH_NO_EXPORT size_t sqsh__map_iterator_size ( const struct SqshMapIterator * iterator)

◆ sqsh__map_manager_block_size()

SQSH_NO_EXPORT size_t sqsh__map_manager_block_size ( const struct SqshMapManager * manager)

◆ sqsh__map_manager_cleanup()

SQSH_NO_EXPORT int sqsh__map_manager_cleanup ( struct SqshMapManager * manager)

◆ sqsh__map_manager_get()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_manager_get ( struct SqshMapManager * manager,
sqsh_index_t index,
const struct SqshMapSlice ** target )

◆ sqsh__map_manager_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_manager_init ( struct SqshMapManager * manager,
const void * input,
const struct SqshConfig * config )

◆ sqsh__map_manager_release()

SQSH_NO_EXPORT int sqsh__map_manager_release ( struct SqshMapManager * manager,
const struct SqshMapSlice * mapping )

◆ sqsh__map_manager_size()

SQSH_NO_EXPORT uint64_t sqsh__map_manager_size ( const struct SqshMapManager * manager)

◆ sqsh__map_reader_address()

SQSH_NO_EXPORT SQSH_NO_UNUSED uint64_t sqsh__map_reader_address ( const struct SqshMapReader * reader)

◆ sqsh__map_reader_advance()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_advance ( struct SqshMapReader * reader,
uint64_t offset,
size_t size )

◆ sqsh__map_reader_all()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_all ( struct SqshMapReader * reader)

◆ sqsh__map_reader_cleanup()

SQSH_NO_EXPORT int sqsh__map_reader_cleanup ( struct SqshMapReader * reader)

◆ sqsh__map_reader_data()

SQSH_NO_EXPORT const uint8_t * sqsh__map_reader_data ( const struct SqshMapReader * reader)

◆ sqsh__map_reader_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_reader_init ( struct SqshMapReader * reader,
struct SqshMapManager * mapper,
const uint64_t start_address,
uint64_t upper_limit )

◆ sqsh__map_reader_remaining_direct()

SQSH_NO_EXPORT size_t sqsh__map_reader_remaining_direct ( const struct SqshMapReader * reader)

◆ sqsh__map_reader_size()

SQSH_NO_EXPORT size_t sqsh__map_reader_size ( const struct SqshMapReader * reader)

◆ sqsh__map_slice_cleanup()

SQSH_NO_EXPORT int sqsh__map_slice_cleanup ( struct SqshMapSlice * mapping)

◆ sqsh__map_slice_data()

SQSH_NO_EXPORT const uint8_t * sqsh__map_slice_data ( const struct SqshMapSlice * mapping)

◆ sqsh__map_slice_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__map_slice_init ( struct SqshMapSlice * mapping,
struct SqshMapper * mapper,
uint64_t address,
uint64_t offset,
size_t size )

◆ sqsh__map_slice_size()

SQSH_NO_EXPORT size_t sqsh__map_slice_size ( const struct SqshMapSlice * mapping)

◆ sqsh__mapper_cleanup()

SQSH_NO_EXPORT int sqsh__mapper_cleanup ( struct SqshMapper * mapper)

◆ sqsh__mapper_init()

SQSH_NO_EXPORT SQSH_NO_UNUSED int sqsh__mapper_init ( struct SqshMapper * mapper,
const void * source,
const struct SqshConfig * config )