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 <QuickLook/QuickLook.h>
import <Cocoa/Cocoa.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, NSMutableString *html, QLPreviewRequestRef preview)
static int ReadHeader (int fd, struct FileHeader_t *fh, NSMutableString *html)
static int ReadKeys (int fd, struct FileHeader_t *fh, NSMutableString *html, QLPreviewRequestRef preview)

Function Documentation

◆ FromBufChar()

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

Definition at line 51 of file ReadFile.m.

◆ FromBufInt()

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

Definition at line 73 of file ReadFile.m.

◆ FromBufLL()

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

Definition at line 89 of file ReadFile.m.

◆ FromBufShort()

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

Definition at line 59 of file ReadFile.m.

◆ FromBufStr()

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

Definition at line 137 of file ReadFile.m.

◆ FromBufUUID()

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

Definition at line 109 of file ReadFile.m.

◆ GetDateAndTime()

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

Definition at line 158 of file ReadFile.m.

◆ ReadBuffer()

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

Definition at line 175 of file ReadFile.m.

◆ ReadFile()

int ReadFile ( NSString * fullPath,
NSMutableString * html,
QLPreviewRequestRef preview )

Definition at line 461 of file ReadFile.m.

◆ ReadHeader()

int ReadHeader ( int fd,
struct FileHeader_t * fh,
NSMutableString * html )
static

Definition at line 183 of file ReadFile.m.

◆ ReadKeys()

int ReadKeys ( int fd,
struct FileHeader_t * fh,
NSMutableString * html,
QLPreviewRequestRef preview )
static

Definition at line 305 of file ReadFile.m.