mnErase

This command is used to erase part of a packet.

The used size and cursor position will be decreased by the amount erased whilst the memory size will remain unchanged.

The contents of the packet will be shifted down as necessary.

Example

Packet = “Hello World”

Used size = 11

Memory Size = 11

mnErase(Packet, 2, 3)

Packet = “He World”

Used size = 8

Memory size = 11

Parameters

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

Unsigned int StartPos: This is the position within the packet that data erasing begins from.

Unsigned int Amount: This is the amount of data to erase.

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