mnGetPacketRemainder
This is used to determine how many bytes
of unread data are in the specified packet.
This is calculated by doing: used
size – cursor position.
Example:
- If a newly received packet
contains 12 bytes of data mnGetPacketRemainder will return 12 at first.
- mnGetInt is then used on the
packet and we assume and an integer is 4 bytes.
- mnGetPacketRemainder will
now return 8 bytes because 4 of the total 12 bytes has been read which
leaves 8 remaining unread bytes.
Parameters
long long int Packet: This is the packet that the command should use.
Returns (Unsigned Integer)
If no error occurred: The amount of unread
data in the specified packet.
0 if an error occurred.
Present in
DBP
C++
.Net
This page is in the following sections:
(2) Packets
(1) Miscellaneous
(0) DarkNet Help