Context algorithm
Semi-predictive context algorithm implementation
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
mapfile.h
Go to the documentation of this file.
1
/* Copyright 2013 Jorge Merlino
2
3
This file is part of Context.
4
5
Context is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
Context is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Context. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef MAPFILE_H
20
#define MAPFILE_H
21
22
#include "
types.h
"
23
24
#ifdef WIN32
25
27
void
*
file2String
(
char
*name,
Uint
*
textlen
, HANDLE *hndl);
28
30
void
freetextspace
(
Uchar
*
text
, HANDLE hndl);
31
32
#else
33
35
void
*
file2String
(
char
*name,
Uint
*
textlen
);
36
38
void
freetextspace
(
Uchar
*
text
,
Uint
textlen
);
39
40
#endif
/* WIN32 */
41
42
#endif
types.h
textlen
Uint textlen
Length of the input text in the encoder.
Definition:
text.h:23
Uchar
unsigned char Uchar
Unsigned char type.
Definition:
types.h:48
text
Uchar * text
Input text to the encoder.
Definition:
text.h:26
Uint
unsigned long Uint
Unsigned int type.
Definition:
types.h:54
file2String
void * file2String(char *name, Uint *textlen)
Opens a file and maps it into memory.
Definition:
mapfile.c:237
freetextspace
void freetextspace(Uchar *text, Uint textlen)
Frees the memory used by the mapping of a file.
Definition:
mapfile.c:225
mapfile.h
Generated on Sun Nov 17 2013 22:33:56 for Context algorithm by
1.8.5