Public Member Functions | |
| HRESULT | GetNumChunks ([out, retval] RtDWORD *pVal) |
| HRESULT | GetChunkIID ([in] RtDWORD dwIndex,[out, retval] VARIANT *pvChunkIID) |
| HRESULT | GetChunkCustId ([in] RtDWORD dwIndex,[out, retval] VARIANT *pvCustId) |
| HRESULT | GetChunkAddress ([in] RtDWORD dwIndex,[out, retval] VARIANT *pvAddress) |
| HRESULT | GetChunkLength ([in] RtDWORD dwIndex,[out, retval] VARIANT *pvLength) |
| HRESULT | GetChunkInfoFlags ([in] RtDWORD dwIndex,[out, retval] VARIANT *pvFlags) |
| HRESULT | Clear () |
| HRESULT | SetChunkInfoFlags ([in] RtDWORD dwIndex,[in] RtDWORD dwFlags) |
| HRESULT | RemoveChunkInfo ([in] RtDWORD dwIndex) |
| HRESULT | FindChunkByAddr ([in] RtQWORD qwAddress,[in] RtDWORD dwLastInd,[out, retval] RtDWORD *pdwIndex) |
| HRESULT IRdChunksListDisp::GetNumChunks | ( | [out, retval] RtDWORD * | pVal | ) |
Get number of chunks, this Chunk List is not included.
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
| HRESULT IRdChunksListDisp::GetChunkIID | ( | [in] RtDWORD | dwIndex, | |
| [out, retval] VARIANT * | pvChunkIID | |||
| ) |
Get chunk IID.
| dwIndex | [in] index of the chunk. |
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkIID(c-1);
System.Alert(d);
| HRESULT IRdChunksListDisp::GetChunkCustId | ( | [in] RtDWORD | dwIndex, | |
| [out, retval] VARIANT * | pvCustId | |||
| ) |
Get chunk's custom identification (usually used as version).
| dwIndex | [in] index of the chunk. |
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkCustId(c-1);
System.Alert(d);
| HRESULT IRdChunksListDisp::GetChunkAddress | ( | [in] RtDWORD | dwIndex, | |
| [out, retval] VARIANT * | pvAddress | |||
| ) |
Get chunk's start address from beginning of the stream/file.
| dwIndex | [in] index of the chunk. |
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkAddress(c-1);
System.Alert(d);
| HRESULT IRdChunksListDisp::GetChunkLength | ( | [in] RtDWORD | dwIndex, | |
| [out, retval] VARIANT * | pvLength | |||
| ) |
Get chunk's length in bytes.
| dwIndex | [in] index of the chunk. |
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkLength(c-1);
System.Alert(d);
| HRESULT IRdChunksListDisp::GetChunkInfoFlags | ( | [in] RtDWORD | dwIndex, | |
| [out, retval] VARIANT * | pvFlags | |||
| ) |
Get chunk's flags. The flags are not stored in the stream/file, they indicates only current chunk's status.
Flags (RdChunksList::ReChunkListInfoFlags):
| dwIndex | [in] index of the chunk. |
Standard HRESULT processing can be applied to the result.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkInfoFlags(c-1);
System.Alert(d);
| HRESULT IRdChunksListDisp::Clear | ( | ) |
Clear the list.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
b.clear();
| HRESULT IRdChunksListDisp::SetChunkInfoFlags | ( | [in] RtDWORD | dwIndex, | |
| [in] RtDWORD | dwFlags | |||
| ) |
Replace already existing chunk info flags.
| dwIndex | [in] Index of the existing chunk info that will be replaced. | |
| dwFlags | [in] New flags. |
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.SetChunkInfoFlags(c-1, 1);
System.Alert(d);
| HRESULT IRdChunksListDisp::RemoveChunkInfo | ( | [in] RtDWORD | dwIndex | ) |
Remove chunk info from the list.
| dwIndex | [in] Index of the chunk info that will be removed. |
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.RemoveChunkInfo(c-1);
| HRESULT IRdChunksListDisp::FindChunkByAddr | ( | [in] RtQWORD | qwAddress, | |
| [in] RtDWORD | dwLastInd, | |||
| [out, retval] RtDWORD * | pdwIndex | |||
| ) |
Find chunk by its address.
| qwAddress | [in] Address. | |
| dwLastInd | [in] Index where search will start. Set to -1 to search from beginning. |
S_OK if found, S_FALSE if not found.
var mainDir = System.GetMainDir();
var target = mainDir + '\\Rs Main Libraries\\AntonPhysics\\nmj.RsObj';
var a = RsFileIO.CreateRsFileHandle(target, 1);
a.close(true);
a.open(1);
var b = a.GetChunksList(true);
var c= b.GetNumChunks();
var d = b.GetChunkAddress(c-1);
var e = b.FindChunkByAddr(d);
1.5.5