mnGetMemblock

This command gets a DarkBASIC Pro memblock from the specified packet.

The data will be taken starting at the cursor position and the cursor will be moved forward by the size of the data returned.

Parameters

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

dword Memblock pointer: This is the pointer of the memblock that the command should use. This should be the return value of GET MEMBLOCK PTR. The data will be copied into the specified memblock.

unsigned int Length: Length of memblock in bytes. Set this to 0 if the memblock has a prefix indicating its length.

bool NullTerminated: Specifies whether the return memblock should have a null terminating character added to the end of it. Note that null terminators are not added by mnAddMemblock.

Returns (Integer)

0 if no error occurred.

-1 if an error occurred.

Present in

DBP




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