mnCreatePacketFromString

This command creates (and returns) a packet that contains the specified string. The used size, memory size and cursor position will be the strings length.

C++ users: the string must be null terminated. The null terminator is not copied into the packet, but is necessary so that the length of the string can be determined.

This method is slightly faster than mnCreatePacket followed by mnSetMemorySize and mnAddStringC or mnAddString.

Parameters

Char * String: This is the string that the command should copy from. The returned packet will contain this string.

Returns (Long Long Integer)

Any number if no error occurred. This number is the newly created packet.

-1 if an error occurred

Present in

DBP

C++

.Net




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