nOffset | (Long) Specifies the position in the data block from which the existing space is removed.
>= 0 - Index (in bytes, zero-based index) in the data block.
-4 - The internal automatic position is used (see the AutoOffset property).
This operation shifts the internal automatic position to the beginning of the removal.. |
---|---|
nRemove | (Long) The size of existing space to be removed in bytes. |
var b = Pm.CreatePmBuffer();
b.SetUint8(-2, 0x10);
b.SetUint8(-2, 0x20);
b.SetUint8(-2, 0x30);
b.SetUint8(-2, 0x40);
var s0 = b.GetHexaString(0);
// The result will be "10203040"
b.Remove(2, 1);
var s1 = b.GetHexaString(0);
// The result will be "102040"