Methods
(static) decode(data, aes) → {Object}
- Source:
Decodes a packet using MapleStory decoding
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer | The input data Buffer |
aes |
AES | The receive AES instance |
Returns:
Returns an object with {header, data}
- Type
- Object
(static) encode(data, aes) → {Buffer}
- Source:
Encodes a packet using MapleStory encoding
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer | The output data buffer |
aes |
AES | The send AES instance |
Returns:
Returns the encrypted Buffer
- Type
- Buffer