Gemstone Common Library
Show/Hide TOC

# Encoding7BitGetSize(UInt32) Method

Gets the number of bytes required to write the provided value.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.154 -- Release Build+24a4f4795f9fb8aaeeb777ef1e3e0158effe5bad
C#
View Source Request Example

    public static int GetSize(
    	uint value
    )

VB
View Source Request Example

    Public Shared Function GetSize (
    	value As UInteger
    ) As Integer

C++
View Source Request Example

    public:
    static int GetSize(
    	unsigned int value
    )

JavaScript
View Source Request Example

    Gemstone.Encoding7Bit.GetSize = function(value);

#### Parameters

value UInt32
  Value to measure.

#### Return Value

Int32
Number of bytes required to write the provided value.

## See Also

#### Reference

Encoding7Bit Class
GetSize Overload
Gemstone Namespace