Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ReadFile.m File Reference
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <stdlib.h>
#include <strings.h>
#include <errno.h>
import <Foundation/Foundation.h>
Include dependency graph for ReadFile.m:

Classes

struct  FileHeader_t

Functions

static void FromBufChar (char **buf, char *x)
static void FromBufInt (char **buf, int *x)
static void FromBufLL (char **buf, long long *x)
static void FromBufShort (char **buf, short *x)
static void FromBufStr (char **buf, char **str)
static void FromBufUUID (char **buf, char **uuid, int versiondir)
static void GetDateAndTime (unsigned int datetime, int *date, int *time)
static int ReadBuffer (int fd, char *buffer, int len)
int ReadFile (NSString *fullPath, NSMutableSet *nameSet, NSMutableSet *titleSet)
static int ReadHeader (int fd, struct FileHeader_t *fh, NSMutableSet *titleSet)
static int ReadKeys (int fd, struct FileHeader_t *fh, NSMutableSet *nameSet, NSMutableSet *titleSet)

Function Documentation

◆ FromBufChar()

void FromBufChar ( char ** buf,
char * x )
static

Definition at line 50 of file ReadFile.m.

◆ FromBufInt()

void FromBufInt ( char ** buf,
int * x )
static

Definition at line 72 of file ReadFile.m.

◆ FromBufLL()

void FromBufLL ( char ** buf,
long long * x )
static

Definition at line 88 of file ReadFile.m.

◆ FromBufShort()

void FromBufShort ( char ** buf,
short * x )
static

Definition at line 58 of file ReadFile.m.

◆ FromBufStr()

void FromBufStr ( char ** buf,
char ** str )
static

Definition at line 136 of file ReadFile.m.

◆ FromBufUUID()

void FromBufUUID ( char ** buf,
char ** uuid,
int versiondir )
static

Definition at line 108 of file ReadFile.m.

◆ GetDateAndTime()

void GetDateAndTime ( unsigned int datetime,
int * date,
int * time )
static

Definition at line 157 of file ReadFile.m.

◆ ReadBuffer()

int ReadBuffer ( int fd,
char * buffer,
int len )
static

Definition at line 174 of file ReadFile.m.

◆ ReadFile()

int ReadFile ( NSString * fullPath,
NSMutableSet * nameSet,
NSMutableSet * titleSet )

Definition at line 405 of file ReadFile.m.

◆ ReadHeader()

int ReadHeader ( int fd,
struct FileHeader_t * fh,
NSMutableSet * titleSet )
static

Definition at line 182 of file ReadFile.m.

◆ ReadKeys()

int ReadKeys ( int fd,
struct FileHeader_t * fh,
NSMutableSet * nameSet,
NSMutableSet * titleSet )
static

Definition at line 294 of file ReadFile.m.