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.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
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