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.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
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