stream.writeInt16: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Stream.writeInt16 to stream.writeInt16)
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = writeInt16
|side = shared
|type = method
|type = method
|name = writeInt16
|class = Stream
|class = Stream
|parameters = int number
|games = iii vc sa iv
|parameter1 = int number The number to write to the stream.
|desc = write 16 bits (2 bytes) with signed integer interpretation to a stream
|return1 = void
|arg1 = int number The number to write to the stream.
|returnFail1 = void
|return = void
|usage = write 16 bits (2 bytes) with signed integer interpretation to a stream
|freturn = void
|notes = The integer must be between -32,768 and 32,767 inclusive both ends.
|note = The integer must be between -32,768 and 32,767 inclusive both ends.
}}
}}

Latest revision as of 20:37, 19 November 2022

Method Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

void stream.writeInt16(int number)

The stream.writeInt16 method is used to write 16 bits (2 bytes) with signed integer interpretation to a stream.

Parameters

1) int number The number to write to the stream.

Return

void This method doesn't return a value.

Types

Shared Stream

Notes

  • The integer must be between -32,768 and 32,767 inclusive both ends.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.