System.AnsiStringBase.ElementSize

From RAD Studio API Documentation
Revision as of 23:16, 16 October 2011 by PyBot (talk | contribs) (Scoping Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

C++

unsigned short ElementSize() const { return Data ? GetRec().elemSize : (unsigned short)1; }

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringBase

Description

Gets the element size of data in a AnsiStringBase.

ElementSize gets the element size, in bytes, of the data in a AnsiStringBase instance. If the instance is empty, the method returns 1.

See Also