w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ftsystem.h File Reference

Go to the source code of this file.

Classes

struct  FT_MemoryRec_
 
union  FT_StreamDesc_
 
struct  FT_StreamRec_
 

Typedefs

typedef typedefFT_BEGIN_HEADER struct FT_MemoryRec_FT_Memory
 
typedef void *(* FT_Alloc_Func) (FT_Memory memory, long size)
 
typedef void(* FT_Free_Func) (FT_Memory memory, void *block)
 
typedef void *(* FT_Realloc_Func) (FT_Memory memory, long cur_size, long new_size, void *block)
 
typedef struct FT_StreamRec_FT_Stream
 
typedef union FT_StreamDesc_ FT_StreamDesc
 
typedef unsigned long(* FT_Stream_IoFunc) (FT_Stream stream, unsigned long offset, unsigned char *buffer, unsigned long count)
 
typedef void(* FT_Stream_CloseFunc) (FT_Stream stream)
 
typedef struct FT_StreamRec_ FT_StreamRec
 

Typedef Documentation

◆ FT_Alloc_Func

typedef void*(* FT_Alloc_Func) (FT_Memory memory, long size)

@functype: FT_Alloc_Func

@description: A function used to allocate size bytes from memory.

@input: memory :: A handle to the source memory manager.

size :: The size in bytes to allocate.

Returns
: Address of new memory block. 0~in case of failure.

Definition at line 86 of file ftsystem.h.

◆ FT_Free_Func

typedef void(* FT_Free_Func) (FT_Memory memory, void *block)

@functype: FT_Free_Func

@description: A function used to release a given block of memory.

@input: memory :: A handle to the source memory manager.

block :: The address of the target memory block.

Definition at line 107 of file ftsystem.h.

◆ FT_Memory

typedef typedefFT_BEGIN_HEADER struct FT_MemoryRec_* FT_Memory

ftsystem.h

FreeType low-level system interface definition (specification).

Copyright (C) 1996-2020 by David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.

Definition at line 64 of file ftsystem.h.

◆ FT_Realloc_Func

typedef void*(* FT_Realloc_Func) (FT_Memory memory, long cur_size, long new_size, void *block)

@functype: FT_Realloc_Func

@description: A function used to re-allocate a given block of memory.

@input: memory :: A handle to the source memory manager.

cur_size :: The block's current size in bytes.

new_size :: The block's requested new size.

block :: The block's current address.

Returns
: New block address. 0~in case of memory shortage.
Note
: In case of error, the old block must still be available.

Definition at line 140 of file ftsystem.h.

◆ FT_Stream

typedef struct FT_StreamRec_* FT_Stream

I / O M A N A G E M E N T @type: FT_Stream

@description: A handle to an input stream.

@also: See @FT_StreamRec for the publicly accessible fields of a given stream object.

Definition at line 198 of file ftsystem.h.

◆ FT_Stream_CloseFunc

typedef void(* FT_Stream_CloseFunc) (FT_Stream stream)

@functype: FT_Stream_CloseFunc

@description: A function used to close a given input stream.

@input: stream :: A handle to the target stream.

Definition at line 268 of file ftsystem.h.

◆ FT_Stream_IoFunc

typedef unsigned long(* FT_Stream_IoFunc) (FT_Stream stream, unsigned long offset, unsigned char *buffer, unsigned long count)

@functype: FT_Stream_IoFunc

@description: A function used to seek and read data from a given input stream.

@input: stream :: A handle to the source stream.

offset :: The offset of read in stream (always from start).

buffer :: The address of the read buffer.

count :: The number of bytes to read from the stream.

Returns
: The number of bytes effectively read by the stream.
Note
: This function might be called to perform a seek or skip operation with a count of~0. A non-zero return value then indicates an error.

Definition at line 248 of file ftsystem.h.

◆ FT_StreamDesc

◆ FT_StreamRec

typedef struct FT_StreamRec_ FT_StreamRec