length = len(data)
size = len(VDATA)
newsize = size + length
VDATA.flush()
VDATA.close()
f.seek(size)
f.write('A' * length)
f.flush()
VDATA = mmap.mmap(f.fileno(), 0)
VDATA.move(offset + length, offset, size - offset)
VDATA.seek(offset)
VDATA.write(data)
VDATA.flush()
deleteFromMmap(4, 8)
insertIntoMmap(4, 'AAAA')
Delete / Insert Data in mmap'ed File