Show / Hide Table of Contents

Class PacketReader

Inheritance
object
PacketReader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Packets.Reader
Assembly: SlipeServer.Packets.dll
Syntax
public class PacketReader

Constructors

| Edit this page View Source

PacketReader(byte[])

Declaration
public PacketReader(byte[] data)
Parameters
Type Name Description
byte[] data

Properties

| Edit this page View Source

Counter

Declaration
public int Counter { get; }
Property Value
Type Description
int
| Edit this page View Source

IsFinishedReading

Declaration
public bool IsFinishedReading { get; }
Property Value
Type Description
bool
| Edit this page View Source

Size

Declaration
public int Size { get; }
Property Value
Type Description
int

Methods

| Edit this page View Source

AlignToByteBoundary()

Declaration
public void AlignToByteBoundary()
| Edit this page View Source

GetBit()

Declaration
public bool GetBit()
Returns
Type Description
bool
| Edit this page View Source

GetBits(int)

Declaration
public bool[] GetBits(int count)
Parameters
Type Name Description
int count
Returns
Type Description
bool[]
| Edit this page View Source

GetByte()

Declaration
public byte GetByte()
Returns
Type Description
byte
| Edit this page View Source

GetByteCapped(int, bool)

Declaration
public byte GetByteCapped(int bitCount, bool alignment = false)
Parameters
Type Name Description
int bitCount
bool alignment
Returns
Type Description
byte
| Edit this page View Source

GetBytes(int)

Declaration
public byte[] GetBytes(int count)
Parameters
Type Name Description
int count
Returns
Type Description
byte[]
| Edit this page View Source

GetBytes(uint)

Declaration
public byte[] GetBytes(uint count)
Parameters
Type Name Description
uint count
Returns
Type Description
byte[]
| Edit this page View Source

GetBytesCapped(int, bool)

Declaration
public byte[] GetBytesCapped(int bitCount, bool alignment = false)
Parameters
Type Name Description
int bitCount
bool alignment
Returns
Type Description
byte[]
| Edit this page View Source

GetDouble()

Declaration
public double GetDouble()
Returns
Type Description
double
| Edit this page View Source

GetElementId()

Declaration
public ElementId GetElementId()
Returns
Type Description
ElementId
| Edit this page View Source

GetFloat()

Declaration
public float GetFloat()
Returns
Type Description
float
| Edit this page View Source

GetFloat(int, int)

Declaration
public float GetFloat(int integerBits, int fractionalBits)
Parameters
Type Name Description
int integerBits
int fractionalBits
Returns
Type Description
float
| Edit this page View Source

GetFloatFromBits(int, float, float)

Declaration
public float GetFloatFromBits(int bitCount, float min, float max)
Parameters
Type Name Description
int bitCount
float min
float max
Returns
Type Description
float
| Edit this page View Source

GetFloatFromBits(uint, float, float)

Declaration
public float GetFloatFromBits(uint bitCount, float min, float max)
Parameters
Type Name Description
uint bitCount
float min
float max
Returns
Type Description
float
| Edit this page View Source

GetInt16()

Declaration
public short GetInt16()
Returns
Type Description
short
| Edit this page View Source

GetInt32()

Declaration
public int GetInt32()
Returns
Type Description
int
| Edit this page View Source

GetInt64()

Declaration
public long GetInt64()
Returns
Type Description
long
| Edit this page View Source

GetString()

Declaration
public string GetString()
Returns
Type Description
string
| Edit this page View Source

GetStringCharacters(int)

Declaration
public string GetStringCharacters(int length)
Parameters
Type Name Description
int length
Returns
Type Description
string
| Edit this page View Source

GetStringCharacters(uint)

Declaration
public string GetStringCharacters(uint length)
Parameters
Type Name Description
uint length
Returns
Type Description
string
| Edit this page View Source

GetUIntFromBytes(byte[])

Declaration
public ulong GetUIntFromBytes(byte[] bytes)
Parameters
Type Name Description
byte[] bytes
Returns
Type Description
ulong
| Edit this page View Source

GetUint16()

Declaration
public ushort GetUint16()
Returns
Type Description
ushort
| Edit this page View Source

GetUint32()

Declaration
public uint GetUint32()
Returns
Type Description
uint
| Edit this page View Source

GetUint64()

Declaration
public ulong GetUint64()
Returns
Type Description
ulong

Extension Methods

CompressionReaderExtensions.GetCompressed(PacketReader, uint, bool)
CompressionReaderExtensions.GetCompressedByte(PacketReader)
CompressionReaderExtensions.GetCompressedFloat(PacketReader)
CompressionReaderExtensions.GetCompressedInt32(PacketReader)
CompressionReaderExtensions.GetCompressedInt64(PacketReader)
CompressionReaderExtensions.GetCompressedUInt32(PacketReader)
CompressionReaderExtensions.GetCompressedUInt64(PacketReader)
CompressionReaderExtensions.GetCompressedUint16(PacketReader)
CompressionReaderExtensions.GetCompressedint16(PacketReader)
ElementReaderExtensions.GetPlayerArmor(PacketReader)
ElementReaderExtensions.GetPlayerHealth(PacketReader)
LuaReaderExtensions.GetLuaBool(PacketReader)
LuaReaderExtensions.GetLuaLongString(PacketReader)
LuaReaderExtensions.GetLuaNumber(PacketReader)
LuaReaderExtensions.GetLuaString(PacketReader)
LuaReaderExtensions.GetLuaTable(PacketReader, List<LuaValue>)
LuaReaderExtensions.GetLuaTableByReference(PacketReader, List<LuaValue>)
LuaReaderExtensions.GetLuaUserdata(PacketReader)
LuaReaderExtensions.GetLuaValue(PacketReader, List<LuaValue>?)
LuaReaderExtensions.GetLuaValues(PacketReader, List<LuaValue>?)
PedReaderExtensions.GetBodyPart(PacketReader)
VectorReaderExtensions.GetNormalizedVector(PacketReader)
VectorReaderExtensions.GetVector2(PacketReader)
VectorReaderExtensions.GetVector2(PacketReader, int, int)
VectorReaderExtensions.GetVector3(PacketReader)
VectorReaderExtensions.GetVector3(PacketReader, int, int)
VectorReaderExtensions.GetVector3WithZAsFloat(PacketReader, int, int)
VectorReaderExtensions.GetVelocityVector(PacketReader)
VehicleReaderExtensions.GetTurretRotation(PacketReader)
VehicleReaderExtensions.GetVehicleHealth(PacketReader)
VehicleReaderExtensions.GetVehicleRotation(PacketReader)
VehicleReaderExtensions.GetVehicleSeat(PacketReader)
WeaponReaderExtensions.GetAmmo(PacketReader)
WeaponReaderExtensions.GetAmmoTuple(PacketReader, bool)
WeaponReaderExtensions.GetWeaponSlot(PacketReader)
WeaponReaderExtensions.GetWeaponType(PacketReader)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX