This command adds a DarkBASIC Pro memblock
to the specified packet.
The data will be added starting at the cursor position and the cursor will be moved forward by the size of the data added.
long long int Packet: This is the packet that the command should use.
The memblock will be added to this packet.
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 for the memblock you wish to add.
unsigned int Length: Length of memblock in bytes. Set this to 0 if
the memblock is null terminated. This should be the return value of
GET MEMBLOCK SIZE for the memblock you wish to add.
bool Prefix: Specifies whether or not to include a prefix of 4 bytes used to indicate the memblock’s length. Set this to false if you have a means of calculating the memblock’s length at the other end.
0 if no error occurred.
-1 if an error occurred.
DBP