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
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.
0 if no error occurred
-1 if an error occurred
DBP
C++
.Net