Network internalsOverview
RakBitStream.WriteU8
Represents an 8-bit value in a packet stream.
Details#
Appends an unsigned 8-bit integer to a local stream, using 1 byte(s). This does not transmit the stream. Returns no values; use representable inputs for the selected numeric type.
Examples#
Example
local stream = raknet.BitStream.new()
stream:WriteU8(42)
print(stream:GetLength()) -- 1