vfs: check userland buffers before reading them.
[haiku.git] / docs / develop / servers / app_server / SharedObject.htm
blob4e5783571ae1788eac18913ae7390010ac18d8c4
1 <HTML>
2 <HEAD>
3 <TITLE>SharedObject.htm</TITLE>
4 <style type="text/css">
5 <!--
6 .Default {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 12pt}
7 .OBOS-Function-Def {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 16pt}
8 .OBOS-Title {background-color: rgb(255,255,255); color: rgb(0,128,0); font-family: 'Dutch801 Rm BT'; font-size: 24pt}
9 .Text-Background {background-color: rgb(255,255,255)}
10 .GR-Default {}
11 .Body {margin: 0px}
12 .Footer {margin: 0px}
13 .Header {margin: 0px}
14 .WP-Default {text-align: left; text-indent: 0px; margin-left: 0px; margin-right: 0px}
15 -->
16 </style>
17 </HEAD>
18 <BODY BGCOLOR="#ffffff">
19 <DIV class="sheet" id="Sheet 1">
20 <P class="Body" style="margin: 0px"><span class="OBOS-Title">SharedObjectf class</span><span style="color: rgb(0,0,0); font-size: 24pt"></span></P>
21 <P class="Body" style="margin: 0px"><BR>
22 The FontStyle class represents the particular style in a font family, such as Bold, Roman, etc. and provides information on an individual font, such as whether it has a fixed width, whether it is scalable etc. It also houses all instances of the individual style.</P>
23 <P class="Body" style="margin: 0px"><BR>
24 <HR>
25 </P>
26 <P class="Body" style="margin: 0px">Member Functions</P>
27 <P class="Body" style="margin: 0px"><BR>
28 </P>
29 <TABLE WIDTH=617 HEIGHT=68 BORDER=1 CELLPADDING=1 CELLSPACING=2>
30 <TR>
31 <TD WIDTH=203 HEIGHT=17>
32 <P class="Body" style="margin: 0px">SharedObject(void)</P>
33 </TD>
34 <TD WIDTH=260 HEIGHT=17>
35 <P class="Body" style="margin: 0px">virtual SharedObject(void)</P>
36 </TD>
37 </TR>
38 <TR>
39 <TD WIDTH=203 HEIGHT=17>
40 <P class="Body" style="margin: 0px">virtual void AddDependent(void)</P>
41 </TD>
42 <TD WIDTH=260 HEIGHT=17>
43 <P class="Body" style="margin: 0px">virtual void RemoveDependent(void)</P>
44 </TD>
45 </TR>
46 <TR>
47 <TD WIDTH=203 HEIGHT=17>
48 <P class="Body" style="margin: 0px">virtual bool HasDependents(void)</P>
49 </TD>
50 <TD WIDTH=260 HEIGHT=17>
51 &nbsp;
52 </TD>
53 </TR>
54 </TABLE>
55 <P class="Body" style="margin: 0px"><BR>
56 <BR>
57 <HR>
58 </P>
59 <P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">SharedObject(void)</span></P>
60 <P class="Body" style="margin: 0px"><BR>
61 1) Sets dependent count to 0</P>
62 <P class="Body" style="margin: 0px"><BR>
63 <BR>
64 <span class="OBOS-Function-Def">virtual ~SharedObject(void)</span></P>
65 <P class="Body" style="margin: 0px"><BR>
66 1) Does nothing</P>
67 <P class="Body" style="margin: 0px"><BR>
68 <BR>
69 <span class="OBOS-Function-Def">virtual void AddDependent(void)</span></P>
70 <P class="Body" style="margin: 0px"><BR>
71 1) Increments dependent count</P>
72 <P class="Body" style="margin: 0px"><BR>
73 <BR>
74 <span class="OBOS-Function-Def">virtual void RemoveDependent(void)</span></P>
75 <P class="Body" style="margin: 0px"><BR>
76 1) Decrements dependent count if greater than 0</P>
77 <P class="Body" style="margin: 0px"><BR>
78 <BR>
79 <span class="OBOS-Function-Def">virtual bool HasDependents(void)</span></P>
80 <P class="Body" style="margin: 0px"><BR>
81 1) if dependent count &gt; 0, return true. Otherwise, return false.</P>
82 <DIV class="layer" id="Layer 1">
83 </DIV>
84 </DIV>
85 </BODY>
86 </HTML>