Inserts a pattern into the document. Insert command shifts file's data to free up the space to fit an inserted pattern. Complexity: constant-time.
This method is a replacement for IFileDocument.Write when used in scripting languages.
Inserting a pattern
// fdoc is initialized elsewhere
var pattern = fdoc.CreateSequence();
pattern.AddData(HexBytes, 0x0d, 0x0a);
fdoc.InsertS(pattern, 100); // insert a given pattern at the offset 100