Class PacketBuilder
Inheritance
PacketBuilder
Assembly: SlipeServer.Packets.dll
Syntax
public class PacketBuilder
Constructors
|
Edit this page
View Source
PacketBuilder()
Declaration
Properties
|
Edit this page
View Source
Length
Declaration
public int Length { get; }
Property Value
Methods
|
Edit this page
View Source
AlignToByteBoundary()
Declaration
public void AlignToByteBoundary()
|
Edit this page
View Source
Build()
Declaration
Returns
|
Edit this page
View Source
Write(ElementId)
Declaration
public void Write(ElementId id)
Parameters
|
Edit this page
View Source
Write(bool)
Declaration
public void Write(bool boolean)
Parameters
Type |
Name |
Description |
bool |
boolean |
|
|
Edit this page
View Source
Write(bool[])
Declaration
public void Write(bool[] bits)
Parameters
Type |
Name |
Description |
bool[] |
bits |
|
|
Edit this page
View Source
Write(byte)
Declaration
public void Write(byte integer)
Parameters
Type |
Name |
Description |
byte |
integer |
|
|
Edit this page
View Source
Write(IEnumerable<byte>)
Declaration
public void Write(IEnumerable<byte> bytes)
Parameters
|
Edit this page
View Source
Write(double)
Declaration
public void Write(double value)
Parameters
Type |
Name |
Description |
double |
value |
|
|
Edit this page
View Source
Write(Color, bool, bool)
Declaration
public void Write(Color color, bool withAlpha = false, bool alphaFirst = false)
Parameters
|
Edit this page
View Source
Write(short)
Declaration
public void Write(short integer)
Parameters
Type |
Name |
Description |
short |
integer |
|
|
Edit this page
View Source
Write(int)
Declaration
public void Write(int integer)
Parameters
Type |
Name |
Description |
int |
integer |
|
|
Edit this page
View Source
Write(long)
Declaration
public void Write(long integer)
Parameters
Type |
Name |
Description |
long |
integer |
|
|
Edit this page
View Source
Write(float)
Declaration
public void Write(float @float)
Parameters
Type |
Name |
Description |
float |
float |
|
|
Edit this page
View Source
Write(string)
Declaration
public void Write(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
|
Edit this page
View Source
Write(ushort)
Declaration
public void Write(ushort integer)
Parameters
Type |
Name |
Description |
ushort |
integer |
|
|
Edit this page
View Source
Write(uint)
Declaration
public void Write(uint integer)
Parameters
Type |
Name |
Description |
uint |
integer |
|
|
Edit this page
View Source
Write(ulong)
Declaration
public void Write(ulong integer)
Parameters
Type |
Name |
Description |
ulong |
integer |
|
|
Edit this page
View Source
WriteBgra(Color)
Declaration
public void WriteBgra(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
|
Edit this page
View Source
WriteBytesCapped(byte[], int)
Declaration
public void WriteBytesCapped(byte[] bytes, int bitCount)
Parameters
Type |
Name |
Description |
byte[] |
bytes |
|
int |
bitCount |
|
|
Edit this page
View Source
WriteCapped(byte, int)
Declaration
public void WriteCapped(byte integer, int bitCap)
Parameters
Type |
Name |
Description |
byte |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(short, int)
Declaration
public void WriteCapped(short integer, int bitCap)
Parameters
Type |
Name |
Description |
short |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(int, int)
Declaration
public void WriteCapped(int integer, int bitCap)
Parameters
Type |
Name |
Description |
int |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(long, int)
Declaration
public void WriteCapped(long integer, int bitCap)
Parameters
Type |
Name |
Description |
long |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(ushort, int)
Declaration
public void WriteCapped(ushort integer, int bitCap)
Parameters
Type |
Name |
Description |
ushort |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(uint, int)
Declaration
public void WriteCapped(uint integer, int bitCap)
Parameters
Type |
Name |
Description |
uint |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteCapped(ulong, int)
Declaration
public void WriteCapped(ulong integer, int bitCap)
Parameters
Type |
Name |
Description |
ulong |
integer |
|
int |
bitCap |
|
|
Edit this page
View Source
WriteElementId(uint)
Declaration
public void WriteElementId(uint integer)
Parameters
Type |
Name |
Description |
uint |
integer |
|
|
Edit this page
View Source
WriteFloat(float, int, int)
Declaration
public void WriteFloat(float value, int integerBits, int fractionalBits)
Parameters
Type |
Name |
Description |
float |
value |
|
int |
integerBits |
|
int |
fractionalBits |
|
|
Edit this page
View Source
WriteFloatFromBits(float, int, float, float, bool, bool)
Declaration
public void WriteFloatFromBits(float value, int bitCount, float min, float max, bool preserveGreaterThanMin, bool wrap = false)
Parameters
|
Edit this page
View Source
WriteRange(short, int, short, short)
Declaration
public void WriteRange(short value, int bits, short min, short max)
Parameters
|
Edit this page
View Source
WriteRange(ushort, int, ushort, ushort)
Declaration
public void WriteRange(ushort value, int bits, ushort min, ushort max)
Parameters
|
Edit this page
View Source
WriteStringWithByteAsLength(string)
Declaration
public void WriteStringWithByteAsLength(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
|
Edit this page
View Source
WriteStringWithoutLength(string)
Declaration
public void WriteStringWithoutLength(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
|
Edit this page
View Source
WriteStringWithoutLength(string, int)
Declaration
public void WriteStringWithoutLength(string value, int maxBytes)
Parameters
Type |
Name |
Description |
string |
value |
|
int |
maxBytes |
|
Extension Methods