mnChangeMemorySize

This command changes the memory size of the specified packet. Unlike mnSetMemorySize, the content of the packet is not lost.

This command cannot be used to decrease the memory size of a packet below its used size. If the specified memory size is smaller than the used size of the packet, then the new memory size will be equal to the used size of the packet.

To decrease the memory size below the used size, use mnSetMemorySize. Alternatively you could decrease the used size using mnErase or mnSetUsedSize before reducing the memory size.

Parameters

Long long int Packet: This is the packet that the command should use.

Unsigned int Size: This is the new memory size.

Returns (Integer)

0 if no error occurred

-1 if an error occurred

Present in

DBP

C++

.Net




This page is in the following sections:
(2) Packets
(1) Miscellaneous
(0) DarkNet Help