Symbian3/PDK/Source/GUID-6D1A830E-F0F1-5C0F-8EEB-70922C0EF6B8.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Tue, 30 Mar 2010 11:56:28 +0100
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
permissions -rw-r--r--
Week 12 contribution of PDK documentation_content. See release notes for details. Fixes Bug 2054, Bug 1583, Bug 381, Bug 390, Bug 463, Bug 1897, Bug 344, Bug 1319, Bug 394, Bug 1520, Bug 1522, Bug 1892"

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-6D1A830E-F0F1-5C0F-8EEB-70922C0EF6B8" xml:lang="en"><title>Length,
maximum length and size</title><shortdesc>Describes the length of 8-bit and 16-bit descriptors.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>A descriptor characterises the data it represents by the length of that
data. The length of a descriptor is the number of data items it represents:</p>
<ul>
<li id="GUID-3AF8F237-CA2A-5AAF-A56E-ECC7C95907B7"><p>for 8 bit variant
descriptors, the length is the number of single-bytes of data. When the descriptor
represents non-Unicode strings, the length is the number of characters in
the string.</p> </li>
<li id="GUID-7610BC67-31CD-57DA-A72C-B1F4348C8FAC"><p>for 16 bit variant
descriptors, the length is the number of double-bytes of data. When the descriptor
represents Unicode strings, the length is the number of characters in the
string.</p> </li>
</ul>
<p>The length of a descriptor cannot be greater than 2<sup>28</sup>.</p>
<p>The size of a descriptor is the number of bytes occupied by the data represented
by that descriptor:</p>
<ul>
<li id="GUID-830C6F31-EE2D-5C30-91D4-AB15FE4D2BA5"><p>for the 8 bit variant
descriptors, the size is the same as the length.</p> </li>
<li id="GUID-C7AF88D8-5836-53B9-A991-EA97B539C7CF"><p>for the 16 bit
variant descriptors, the size is twice the length.</p> </li>
</ul>
<p>The descriptors which allow their data to be modified are also characterised
by a maximum length. This represents an upper limit on the length of data
the descriptor can represent, i.e.the length of data represented by the descriptor
can vary can vary from zero up to, and including, this maximum value.</p>
</conbody></concept>