Gemstone Common Library
Show/Hide TOC

# Encoding7BitReadInt15(Byte, Int32) Method

Reads a 7-bit encoded short.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.152 -- Release Build+1bdd5395ab91a1a698659399697f8334859b02d2
C#
View Source Request Example

    public static short ReadInt15(
    	byte[] stream,
    	ref int position
    )

VB
View Source Request Example

    Public Shared Function ReadInt15 (
    	stream As Byte(),
    	ByRef position As Integer
    ) As Short

C++
View Source Request Example

    public:
    static short ReadInt15(
    	array<unsigned char>^ stream,
    	int% position
    )

JavaScript
View Source Request Example

    Gemstone.Encoding7Bit.ReadInt15 = function(stream, position);

#### Parameters

stream Byte
  Source stream.
position Int32
  Reference position in stream. Position will be updated after reading.

#### Return Value

Int16
7-bit encoded short.

## See Also

#### Reference

Encoding7Bit Class
ReadInt15 Overload
Gemstone Namespace