net/WriteUInt

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added int size name reference)
(Made WriteUIInt bit description more clear)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=WriteUInt
 
|Parent=net
 
 
|Description=Appends an unsigned integer with the specified number of bits to the current net message.
 
|Description=Appends an unsigned integer with the specified number of bits to the current net message.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
 +
|Name=WriteUInt
 +
|Parent=net
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 14: Line 14:
 
|type=number
 
|type=number
 
|name=numberOfBits
 
|name=numberOfBits
|desc=The size of the integer to be sent, in bits. Acceptable values range from 1 to 32. 1 = bit, 4 = nibble, 8 = byte, 16 = short, 32 = long.
+
|desc=The size of the integer to be sent, in bits. Acceptable values range from any number 1 to 32 inclusive. For reference, 1 = bit, 4 = nibble, 8 = byte, 16 = short, 32 = long.
 
}}
 
}}

Latest revision as of 22:47, 16 April 2016

 net.WriteUInt( )

Description

Appends an unsigned integer with the specified number of bits to the current net message.

Arguments

number unsignedInteger

The unsigned integer to be sent.

Arguments

number numberOfBits

The size of the integer to be sent, in bits. Acceptable values range from any number 1 to 32 inclusive. For reference, 1 = bit, 4 = nibble, 8 = byte, 16 = short, 32 = long.
Personal tools
Navigation