Garry's Mod Wiki

net.ReadData

  string net.ReadData( number length )

Description

Reads pure binary data from the message.

You must read information in same order as you write it.

Arguments

1 number length
The length of the data to be read, in bytes.

Returns

1 string
The binary data read, or a string containing one character with a byte of 0 if no data could be read.