4 irecoptions::setbuffersize, Irecoptions::setbuffersize – Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual
Page 57

53
FireInspector Automation User’s Manual
CATC
Version 1.0
2.5.4
IRecOptions::SetBufferSize
Sets the size of buffer to record.
Syntax
HRESULT SetBufferSize (
[in] long buffer_size );
Parameters
•
buffer_size
–
buffer size in bytes
Return values
•
E_INVALIDARG
–
invalid buffer size was specified
Remarks
This command sets the size of the buffer allocated in the internal memory of the system.
Notice that because of internal architecture considerations, the buffer size may be set to a
greater value than actually requested.
Note: If you set the buffer size to 2*1024, the Recording Options dialog box in the FireIn-
spector trace viewer software will display 2.2 MB.
The default setting is 1Mb.
Example
WSH:
CurrentDir = Left(WScript.ScriptFullName,
InstrRev(WScript.ScriptFullName, "\"))
Set Analyzer = WScript.CreateObject("CATC.FwAnalyzer")
Set RecOptions = Analyzer.GetRecordingOptions
RecOptions.SetBufferSize 2*1024*1024 ' 2Mb
C++: