Skip to content
Network internalsOverview

RakBitStream.WriteU32

Represents a 32-bit value in a packet stream.

Details#

Appends an unsigned 32-bit integer in little-endian order to a local stream, using 4 byte(s). This does not transmit the stream. Returns no values; use representable inputs for the selected numeric type.

Examples#

Example

Luau
local stream = raknet.BitStream.new()
stream:WriteU32(65537)
print(stream:GetLength()) -- 4