EntityLumpEntry.Insert Method

Inserts a new key / value pair at the given index, shifting the pair at that index and beyond up. If EntityLumpEntry.Length is passed in, this is an append operation.

void Insert(int index, const char[] key, const char[] value)

Parameters

int index

Position, starting from 0.

const char[] key

New key name.

const char[] value

New value.

Errors

Index is out of bounds or entity lump is read-only.