Class PacketReader
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
|
Edit this page
View Source
IsFinishedReading
Declaration
public bool IsFinishedReading { get; }
Property Value
|
Edit this page
View Source
Size
Declaration
Property Value
Methods
|
Edit this page
View Source
AlignToByteBoundary()
Declaration
public void AlignToByteBoundary()
|
Edit this page
View Source
GetBit()
Declaration
Returns
|
Edit this page
View Source
GetBits(int)
Declaration
public bool[] GetBits(int count)
Parameters
Type |
Name |
Description |
int |
count |
|
Returns
|
Edit this page
View Source
GetByte()
Declaration
Returns
|
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
|
Edit this page
View Source
GetBytes(int)
Declaration
public byte[] GetBytes(int count)
Parameters
Type |
Name |
Description |
int |
count |
|
Returns
|
Edit this page
View Source
GetBytes(uint)
Declaration
public byte[] GetBytes(uint count)
Parameters
Type |
Name |
Description |
uint |
count |
|
Returns
|
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
|
Edit this page
View Source
GetDouble()
Declaration
public double GetDouble()
Returns
|
Edit this page
View Source
GetElementId()
Declaration
public ElementId GetElementId()
Returns
|
Edit this page
View Source
GetFloat()
Declaration
Returns
|
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
|
Edit this page
View Source
GetFloatFromBits(int, float, float)
Declaration
public float GetFloatFromBits(int bitCount, float min, float max)
Parameters
Returns
|
Edit this page
View Source
GetFloatFromBits(uint, float, float)
Declaration
public float GetFloatFromBits(uint bitCount, float min, float max)
Parameters
Returns
|
Edit this page
View Source
GetInt16()
Declaration
Returns
|
Edit this page
View Source
GetInt32()
Declaration
Returns
|
Edit this page
View Source
GetInt64()
Declaration
Returns
|
Edit this page
View Source
GetString()
Declaration
public string GetString()
Returns
|
Edit this page
View Source
GetStringCharacters(int)
Declaration
public string GetStringCharacters(int length)
Parameters
Type |
Name |
Description |
int |
length |
|
Returns
|
Edit this page
View Source
GetStringCharacters(uint)
Declaration
public string GetStringCharacters(uint length)
Parameters
Type |
Name |
Description |
uint |
length |
|
Returns
|
Edit this page
View Source
GetUIntFromBytes(byte[])
Declaration
public ulong GetUIntFromBytes(byte[] bytes)
Parameters
Type |
Name |
Description |
byte[] |
bytes |
|
Returns
|
Edit this page
View Source
GetUint16()
Declaration
public ushort GetUint16()
Returns
|
Edit this page
View Source
GetUint32()
Declaration
Returns
|
Edit this page
View Source
GetUint64()
Declaration
Returns
Extension Methods