Inserts a given pattern into the document, repeating it to fill the given size. 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.InsertPattern when used in scripting languages.
Inserting a pattern
// fdoc is initialized elsewhere var pattern = fdoc.CreateSequence(); pattern.AddData(HexBytes, 0x0d, 0x0a); fdoc.InsertPatternS(pattern, 100, 1000);