Hex Editor
- Binary File Editing Software for Windows
IFileDocument.InsertByte Method
< Previous
Top
Next >
Declaration
Automation:
void
InsertByte
(
[in]
byte
nByteFill
,
[in]
ulong
off
,
[in]
ulong
Size
) ;
Native (C++):
HRESULT
InsertByte
(
[in]
unsigned char
nByteFill
,
[in]
unsigned __int64
off
,
[in]
unsigned __int64
Size
) ;
Parameters
nByteFill
The byte value to insert.
off
Insert offset
Size
Insert size
Return Value
S_OK or standard OLE error code.
Remarks
Inserts a block of a given size into the document and fill it with a given byte value. Complexity: constant-time.
Examples
Inserting a pattern
C#
Copy Code
// fdoc is initialized elsewhere fdoc.InsertByte('#', 100, 10000);
< Previous
Top
Next >