1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>OS_ReferentSize</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_ReferentSize <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <nitro/os.h></CODE></PRE> 16 <PRE><CODE>void OS_ReferentSize( OSArenaId id, void* ptr );</CODE></PRE> 17</DL> 18<H2>Arguments</H2> 19<TABLE border="1" width="100%"> 20 <TBODY> 21 <TR> 22 <TD width="13%"><EM><STRONG>id</STRONG></EM></TD> 23 <TD width="87%">ID of the arena associated with the memory block</TD> 24 </TR> 25 <TR> 26 <TD><B><I>ptr</I></B></TD> 27 <TD>Pointer to the memory block.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<H2>Return Values</H2> 32<P>Returns the size of the specified main block in memory, excluding the header region for managing the memory block. </P> 33<H2>Description</H2> 34<P>Acquires the size that the specified main block occupies in memory, excluding the header region for managing the memory block.</P> 35<P> <BR><B><I>id</I></B> specifies the arena ID that contains the memory block. To read more about this value, see <a href="../arena/OS_InitArena.html"><code>OS_InitArena</code></a>.</P> 36<P><EM><STRONG><CODE>ptr</CODE></STRONG></EM> is the address to the memory block that is previously acquired with <CODE>OS_AllocFixed()</CODE>, <CODE>OS_AllocFromHeap()</CODE>, etc. </P> 37<H2>See Also</H2> 38<P><CODE><A href="../arena/OS_InitArena.html">OS_InitArena</A></code>, <code><A href="OS_InitAlloc.html">OS_InitAlloc</A></code>, <code><A href="OS_AllocFromHeap.html">OS_AllocFromHeap</A></code>, <code><A href="OS_AllocFixed.html">OS_AllocFixed</A></CODE></P> 39<H2>Revision History</H2> 40<P>2004/01/07 Initial version.</P> 41<hr><p>CONFIDENTIAL</p></body> 42</HTML>