sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
psarrst.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* psarrst.h
4
*
5
* Adobe's code for Array Stacks (specification).
6
*
7
* Copyright 2007-2013 Adobe Systems Incorporated.
8
*
9
* This software, and all works of authorship, whether in source or
10
* object code form as indicated by the copyright notice(s) included
11
* herein (collectively, the "Work") is made available, and may only be
12
* used, modified, and distributed under the FreeType Project License,
13
* LICENSE.TXT. Additionally, subject to the terms and conditions of the
14
* FreeType Project License, each contributor to the Work hereby grants
15
* to any individual or legal entity exercising permissions granted by
16
* the FreeType Project License and this section (hereafter, "You" or
17
* "Your") a perpetual, worldwide, non-exclusive, no-charge,
18
* royalty-free, irrevocable (except as stated in this section) patent
19
* license to make, have made, use, offer to sell, sell, import, and
20
* otherwise transfer the Work, where such license applies only to those
21
* patent claims licensable by such contributor that are necessarily
22
* infringed by their contribution(s) alone or by combination of their
23
* contribution(s) with the Work to which such contribution(s) was
24
* submitted. If You institute patent litigation against any entity
25
* (including a cross-claim or counterclaim in a lawsuit) alleging that
26
* the Work or a contribution incorporated within the Work constitutes
27
* direct or contributory patent infringement, then any patent licenses
28
* granted to You under this License for that Work shall terminate as of
29
* the date such litigation is filed.
30
*
31
* By using, modifying, or distributing the Work you indicate that you
32
* have read and understood the terms and conditions of the
33
* FreeType Project License as well as those provided in this section,
34
* and you accept them fully.
35
*
36
*/
37
38
43
#ifndef PSARRST_H_
44
#define PSARRST_H_
45
46
47
#include "
pserror.h
"
48
49
50
FT_BEGIN_HEADER
51
52
53
/* need to define the struct here (not opaque) so it can be allocated by */
54
/* clients */
55
typedef
struct
CF2_ArrStackRec_
56
{
57
FT_Memory memory;
58
FT_Error* error;
59
60
size_t
sizeItem;
/* bytes per element */
61
size_t
allocated;
/* items allocated */
62
size_t
count;
/* number of elements allocated */
63
size_t
totalSize;
/* total bytes allocated */
64
65
void
* ptr;
/* ptr to data */
66
67
} CF2_ArrStackRec, *CF2_ArrStack;
68
69
70
FT_LOCAL(
void
)
71
cf2_arrstack_init( CF2_ArrStack arrstack,
72
FT_Memory memory,
73
FT_Error* error,
74
size_t
sizeItem );
75
FT_LOCAL(
void
)
76
cf2_arrstack_finalize( CF2_ArrStack arrstack );
77
78
FT_LOCAL(
void
)
79
cf2_arrstack_setCount( CF2_ArrStack arrstack,
80
size_t
numElements );
81
FT_LOCAL(
void
)
82
cf2_arrstack_clear( CF2_ArrStack arrstack );
83
FT_LOCAL(
size_t
)
84
cf2_arrstack_size(
const
CF2_ArrStack arrstack );
85
86
FT_LOCAL(
void
* )
87
cf2_arrstack_getBuffer(
const
CF2_ArrStack arrstack );
88
FT_LOCAL(
void
* )
89
cf2_arrstack_getPointer(
const
CF2_ArrStack arrstack,
90
size_t
idx );
91
92
FT_LOCAL(
void
)
93
cf2_arrstack_push( CF2_ArrStack arrstack,
94
const
void
* ptr );
95
96
97
FT_END_HEADER
98
99
100
#endif
/* PSARRST_H_ */
101
102
103
/* END */
pserror.h
CF2_ArrStackRec_
Definition
psarrst.h:56
freetype
src
psaux
psarrst.h
Generated by
1.18.0