mnInsert

This command is used to create space in a packet. Space is created at the cursor position, you can use mnSetCursor and mnGetCursor to manipulate the cursor.

The used size and memory size will increase by the amount inserted.

The cursor position will not be changed.

The contents of the space created is undefined.

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

Example

Packet = "Hello World"

Used size = 11

Memory Size = 11

mnSetCursor(Packet, 5)

mnInsert(Packet, 4)

mnAddStringC(Packet, " BIG", 0, false)

Packet = “Hello BIG World”

Used size = 15

Memory size = 15

Parameters

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

Unsigned int Amount: This is the amount of space to create.

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