Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/dnn/src/torch/THFilePrivate.h
16337 views
1
namespace TH {
2
3
struct THFile__
4
{
5
struct THFileVTable *vtable;
6
7
int isQuiet;
8
int isReadable;
9
int isWritable;
10
int isBinary;
11
int isAutoSpacing;
12
int hasError;
13
};
14
15
/* virtual table definition */
16
17
struct THFileVTable
18
{
19
int (*isOpened)(THFile *self);
20
21
long (*readByte)(THFile *self, unsigned char *data, long n);
22
long (*readChar)(THFile *self, char *data, long n);
23
long (*readShort)(THFile *self, short *data, long n);
24
long (*readInt)(THFile *self, int *data, long n);
25
long (*readLong)(THFile *self, int64 *data, long n);
26
long (*readFloat)(THFile *self, float *data, long n);
27
long (*readDouble)(THFile *self, double *data, long n);
28
long (*readString)(THFile *self, const char *format, char **str_);
29
30
void (*seek)(THFile *self, long position);
31
void (*seekEnd)(THFile *self);
32
long (*position)(THFile *self);
33
void (*close)(THFile *self);
34
void (*free)(THFile *self);
35
};
36
37
} // namespace
38
39