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