Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.WriteS Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
void  WriteS ( [in]   ISequence  pSequence, [in]   ulong  off) ;
Native (C++):
HRESULT  WriteS ( [in]   ISequence *  pSequence, [in]   unsigned __int64  off) ;
Parameters
pSequenceSequence object that contains the data to write.offWrite offset
Return Value
S_OK or standard OLE error code.
Remarks

Writes data to a document. The written data overwrites document's existing data and may also increase the file's size if it overlaps the current file's size. Write always creates a new operation in document's operation history. Complexity: constant-time.

This method is a replacement for IFileDocument.Write when used in scripting languages.

Examples

Writing Data

JavascriptCopy Code
// fdoc is initialized elsewhere
var seq=fdoc.CreateSequence();
fdoc.AddData(HexBytes,0,1,2,3,4,5,6,7,8,9);
fdoc.WriteS(seq, 1000);
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.