C# Class GarrysModLuaShared.Classes.bf_read

This is the object passed to usermessage.Hook when a message is received. It contains each value stored in the message in sequential order. You should read values from it in the order you wrote them.
Inheritance: LuaObject
Afficher le fichier Open project: OmegaExtern/gmod-csharp-binary-module

Méthodes publiques

Méthode Description
ReadAngle ( ) : Angle

Reads an returns an angle object from the bitstream.

ReadBool ( ) : bool

Reads 1 bit an returns a bool representing the bit.

ReadChar ( ) : sbyte

Reads a signed char and returns a number from -127 to 127 representing the ascii value of that char.

ReadEntity ( ) : Entity

Reads a short representing an entity index and returns the matching entity handle.

ReadFloat ( ) : double

Reads a 4 byte float from the bitstream and returns it.

ReadLong ( ) : int

Reads a 4 byte long from the bitstream and returns it.

ReadShort ( ) : short

Reads a 2 byte short from the bitstream and returns it.

ReadString ( ) : string

Reads a null terminated string from the bitstream.

ReadVector ( ) : Vector

Reads a special encoded vector from the bitstream and returns it, this function is not suitable to send normals.

ReadVectorNormal ( ) : Vector

Reads a special encoded vector normal from the bitstream and returns it, this function is not suitable to send vectors that represent a position.

Reset ( ) : void

Rewinds the bitstream so it can be read again.

bf_read ( int index )

Method Details

ReadAngle() public méthode

Reads an returns an angle object from the bitstream.
public ReadAngle ( ) : Angle
Résultat Angle

ReadBool() public méthode

Reads 1 bit an returns a bool representing the bit.
public ReadBool ( ) : bool
Résultat bool

ReadChar() public méthode

Reads a signed char and returns a number from -127 to 127 representing the ascii value of that char.
public ReadChar ( ) : sbyte
Résultat sbyte

ReadEntity() public méthode

Reads a short representing an entity index and returns the matching entity handle.
public ReadEntity ( ) : Entity
Résultat Entity

ReadFloat() public méthode

Reads a 4 byte float from the bitstream and returns it.
public ReadFloat ( ) : double
Résultat double

ReadLong() public méthode

Reads a 4 byte long from the bitstream and returns it.
public ReadLong ( ) : int
Résultat int

ReadShort() public méthode

Reads a 2 byte short from the bitstream and returns it.
public ReadShort ( ) : short
Résultat short

ReadString() public méthode

Reads a null terminated string from the bitstream.
public ReadString ( ) : string
Résultat string

ReadVector() public méthode

Reads a special encoded vector from the bitstream and returns it, this function is not suitable to send normals.
public ReadVector ( ) : Vector
Résultat Vector

ReadVectorNormal() public méthode

Reads a special encoded vector normal from the bitstream and returns it, this function is not suitable to send vectors that represent a position.
public ReadVectorNormal ( ) : Vector
Résultat Vector

Reset() public méthode

Rewinds the bitstream so it can be read again.
public Reset ( ) : void
Résultat void

bf_read() public méthode

public bf_read ( int index )
index int