프로퍼티 | 타입 | 설명 | |
---|---|---|---|
data | byte[] | ||
doNotEncryptBuffer | bool | ||
isFullheader | bool | ||
isGateway | bool | ||
offset | ushort | ||
size | ushort |
메소드 | 설명 | |
---|---|---|
GetByte ( ) : byte |
Get the byte at the current offset.
|
|
GetByte ( ushort index ) : byte |
Get the byte at the given index.
|
|
GetBytes ( ushort count ) : byte[] |
Get a certain amount of bytes from the current offset.
|
|
GetBytes ( ushort count, ushort index ) : byte[] |
Get a set of bytes from a given location.
|
|
GetFloat ( ) : float |
Get the float at the current offset.
|
|
GetFloat ( ushort index ) : float |
Get the float at the given index.
|
|
GetInt ( ) : int |
Get the int at the current offset.
|
|
GetInt ( ushort index ) : int |
Get the int at the given index.
|
|
GetShort ( ) : short |
Get the short at the current offset.
|
|
GetShort ( ushort index ) : short |
Get the short at the given index.
|
|
GetString ( ) : string |
Get the Unicode string at the current offset.
|
|
GetString ( ushort index ) : string |
Get the Unicode string starting at index.
|
|
GetStringFixedSize ( ushort size ) : string |
Get the Unicode string at the current offset.
|
|
GetStringFixedSize ( ushort index, ushort size ) : string |
Get the Unicode string starting at index.
|
|
GetUInt ( ) : uint |
Get the uint at the current offset.
|
|
GetUInt ( ushort index ) : uint |
Get the uint at the given index.
|
|
GetUShort ( ) : ushort |
Get the ushort at the current offset.
|
|
GetUShort ( ushort index ) : ushort |
Get the ushort at the given index.
|
|
New ( ) : |
Create a new instance of this packet.
|
|
Packet ( ) : System |
Create a new packet with no data bytes at all. The data array has to be initialized manually.
|
|
Packet ( byte data ) : System |
Create a new packet with the given data bytes. The size and offset are set automatically.
|
|
Packet ( short length ) : System |
Create a new packet with the given length. The data bytes are initialized to all zeroes.
|
|
Parse ( SagaLib.Client client ) : void |
Parse this packet (only used for GetPackets)
|
|
PutByte ( byte b ) : void |
Put the given byte at the current offset.
|
|
PutByte ( byte b, ushort index ) : void |
Put the given byte at the given index.
|
|
PutBytes ( byte bdata ) : void |
Put some given bytes at the current offset in the data array.
|
|
PutBytes ( byte bdata, ushort index ) : void |
Put some given bytes at a given position in the data array.
|
|
PutFloat ( float s ) : void |
Put the given float at the current offset in the data.
|
|
PutFloat ( float s, ushort index ) : void |
Put the given float at the given index.
|
|
PutInt ( int s ) : void |
Put the given int at the current offset in the data.
|
|
PutInt ( int s, ushort index ) : void |
Put the given int at the given index.
|
|
PutShort ( short s ) : void |
Put the given short at the current offset.
|
|
PutShort ( short s, ushort index ) : void |
Put the given short at the given index.
|
|
PutStandardItem ( int id, uint u1, uint u2, string name, uint u3, byte clv, bool tradeable, ushort dura, byte stack, uint add1, uint add2, uint add3, byte itemindex, ushort index ) : void | ||
PutString ( string s ) : void |
Put a string a the current offset.
|
|
PutString ( string s, ushort index ) : void |
Put a string at the given index of the data.
|
|
PutTradeItem ( int id, uint u1, uint u2, string name, uint u3, byte clv, bool tradeable, ushort dura, byte stack, uint add1, uint add2, uint add3, ushort index ) : void | ||
PutUInt ( uint s ) : void |
Put the given uint at the current offset.
|
|
PutUInt ( uint s, ushort index ) : void |
Put the given uint at the given index.
|
|
PutUShort ( ushort s ) : void |
Put the given ushort at the current offset.
|
|
PutUShort ( ushort s, ushort index ) : void |
Put the given ushort at the given index.
|
|
SetLength ( ) : void |
Write the data length to the first 2 bytes of the packet.
|
|
SizeIsOk ( ushort size ) : bool |
Check to see if a given size is ok for a certain packet.
|
|
isStaticSize ( ) : bool |
public GetBytes ( ushort count ) : byte[] | ||
count | ushort | Number of bytes to read. |
리턴 | byte[] |
public GetBytes ( ushort count, ushort index ) : byte[] | ||
count | ushort | Number of bytes to get. |
index | ushort | Indec from where to get bytes. |
리턴 | byte[] |
public GetFloat ( ushort index ) : float | ||
index | ushort | Index of the float. |
리턴 | float |
public GetShort ( ushort index ) : short | ||
index | ushort | Index of the short. |
리턴 | short |
public GetString ( ushort index ) : string | ||
index | ushort | Index of the string. |
리턴 | string |
public GetStringFixedSize ( ushort size ) : string | ||
size | ushort | |
리턴 | string |
public GetStringFixedSize ( ushort index, ushort size ) : string | ||
index | ushort | Index of the string. |
size | ushort | |
리턴 | string |
public GetUShort ( ushort index ) : ushort | ||
index | ushort | Index of the ushort. |
리턴 | ushort |
public Packet ( byte data ) : System | ||
data | byte | The (unencrypted) data bytes |
리턴 | System |
public Packet ( short length ) : System | ||
length | short | Length of the data bytes. |
리턴 | System |
public PutByte ( byte b, ushort index ) : void | ||
b | byte | Byte to insert. |
index | ushort | Index to insert at. |
리턴 | void |
public PutBytes ( byte bdata ) : void | ||
bdata | byte | bytes to add to the data array |
리턴 | void |
public PutBytes ( byte bdata, ushort index ) : void | ||
bdata | byte | bytes to add to the data array |
index | ushort | position to add the bytes to |
리턴 | void |
public PutFloat ( float s, ushort index ) : void | ||
s | float | Float to insert. |
index | ushort | Index to insert at. |
리턴 | void |
public PutInt ( int s, ushort index ) : void | ||
s | int | Int to insert. |
index | ushort | Index to insert at. |
리턴 | void |
public PutShort ( short s, ushort index ) : void | ||
s | short | Short to insert. |
index | ushort | Index to insert at. |
리턴 | void |
public PutStandardItem ( int id, uint u1, uint u2, string name, uint u3, byte clv, bool tradeable, ushort dura, byte stack, uint add1, uint add2, uint add3, byte itemindex, ushort index ) : void | ||
id | int | |
u1 | uint | |
u2 | uint | |
name | string | |
u3 | uint | |
clv | byte | |
tradeable | bool | |
dura | ushort | |
stack | byte | |
add1 | uint | |
add2 | uint | |
add3 | uint | |
itemindex | byte | |
index | ushort | |
리턴 | void |
public PutString ( string s, ushort index ) : void | ||
s | string | String to insert. |
index | ushort | Index at which to insert. |
리턴 | void |
public PutTradeItem ( int id, uint u1, uint u2, string name, uint u3, byte clv, bool tradeable, ushort dura, byte stack, uint add1, uint add2, uint add3, ushort index ) : void | ||
id | int | |
u1 | uint | |
u2 | uint | |
name | string | |
u3 | uint | |
clv | byte | |
tradeable | bool | |
dura | ushort | |
stack | byte | |
add1 | uint | |
add2 | uint | |
add3 | uint | |
index | ushort | |
리턴 | void |
public PutUInt ( uint s, ushort index ) : void | ||
s | uint | uint to insert. |
index | ushort | Index to insert at. |
리턴 | void |
public PutUShort ( ushort s, ushort index ) : void | ||
s | ushort | Ushort to insert. |
index | ushort | Index to insert at. |
리턴 | void |