MmdbSGDS.sgm 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- $XConsortium: MmdbSGDS.sgm /main/5 1996/09/08 20:08:07 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.INFO.DtMmdbSectionGetDataSiz">]]><refmeta><refentrytitle>
  10. DtMmdbSectionGetDataSize</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbSectionGetDataSize</function></refname><refpurpose>obtains
  12. the size of a section's data</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>int <function>DtMmdbSectionGetDataSize</function></funcdef>
  16. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  17. </funcsynopsis>
  18. </refsynopsisdiv><refsect1>
  19. <title>DESCRIPTION</title>
  20. <para>The <function>DtMmdbSectionGetDataSize</function> function
  21. returns the number of bytes in the specified section's data.
  22. Table lookup is
  23. involved if the section identifier is specified by the
  24. <symbol role="Variable">locator_ptr</symbol> field.
  25. </para>
  26. </refsect1><refsect1>
  27. <title>ARGUMENTS</title>
  28. <variablelist>
  29. <varlistentry><term><symbol role="Variable">request</symbol></term>
  30. <listitem>
  31. <para>Specifies the bookcase in the bookcase descriptor field and
  32. either the section's Database Engine identifier (in the
  33. <symbol role="Variable">primary_oid</symbol> field) or the
  34. section's logical identifier (in the <symbol role="Variable">locator_ptr</symbol>
  35. field). If both of these fields have a value,
  36. <function>DtMmdbSectionGetDataSize</function> uses the
  37. <symbol role="Variable">locator_ptr</symbol> value.
  38. </para>
  39. </listitem>
  40. </varlistentry>
  41. </variablelist>
  42. </refsect1><refsect1>
  43. <title>RETURN VALUE</title>
  44. <para>If <function>DtMmdbSectionGetDataSize</function> completes
  45. successfully, it returns the size of the section's data.
  46. If it fails, it returns -1.
  47. </para>
  48. </refsect1><refsect1>
  49. <title>EXAMPLE</title>
  50. <para>The following shows how a <function>DtMmdbSectionGetDataSize</function> call
  51. might be coded.</para>
  52. <informalexample>
  53. <programlisting>DtMmdbInfoRequest request;
  54. /* fill the request here */
  55. l = DtMmdbSectionGetDataSize(&amp;request);
  56. </programlisting>
  57. </informalexample>
  58. </refsect1><refsect1>
  59. <title>SEE ALSO</title>
  60. <para>TO BE SUPPLIED
  61. </para>
  62. </refsect1></refentry>