Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.ReadS Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< Previous Top Next >
Declaration
Automation:
void  ReadS ( [in]   ISequence  pSequence, [in]   ulong  off) ;
Native (C++):
HRESULT  ReadS ( [in]   ISequence *  pSequence, [in]   unsigned __int64  off) ;
Parameters
pSequence Sequence object into which data is read. off Read offset
Return Value
S_OK or standard OLE error code.
Remarks

Reads data from a document. If requested data exceeds the current document's size, any excess bytes are filled with zeros. Complexity: constant-time.

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

Examples

Reading Data

Javascript Copy Code
// fdoc is initialized elsewhere
var seq = fdoc.CreateSequence();
fdoc.Length = 256;
fdoc.ReadS(seq, 1000);
    
< Previous Top Next >
Copyright © 2017 HHD Software. All rights reserved.