summaryrefslogtreecommitdiffstats
path: root/buffers.h
blob: 7bcdd1d80f54b5224d7af4b6c390f3b2f184c11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef BUFFERS_H
#define	BUFFERS_H

#include <stdio.h>
#include <stdlib.h>
#include "machine_type.h"
#include "config.h"
#include "datatypes.h"

// opens a buffer, bufnum has to be either 1 or 2
tUInt32 openbuf(tBuffer* hBuf,tUInt8 bufnum,char* filename);

// reads into the buffer, if the need arises
tUInt32 readbuf(tBuffer* hBuf,tInt64 pos);

// get the index of the file position within the buffer
tInt32	getbufferidx(tBuffer* hBuf,tInt64 pos);


tInt8   savechanges(tBuffer* hBuf);

#endif
d-1&id=e17e23a7a53c15ab29c66c2e5361b8b70491cac2&follow=1'>Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9