[#BloombergLP-bdldfp-DecimalConvertUtil-isValidMultiWidthSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::isValidMultiWidthSize
:relfileprefix: ../../../
:mrdocs:

Return whether `size` is valid for multi&hyphen;width encoding&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalconvertutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
isValidMultiWidthSize(xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] size);
----

== Description

Note that valid encoding sizes are 1, 2, 3, 4, 5 and 8 bytes&period;

== Return Value

`true` if `size` is a valid multi&hyphen;width size

== Parameters

[cols="1,4"]
|===
| Name| Description
| *size*
| candidate encoding size in bytes
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
